Pagination is the process of dividing a large amount of content into smaller, also the UI component is used for navigating between these pages.
navigable | editable:
navigable pagination navigates between pages by selecting the page number.editable pagination allows the user to go to the page by inputting the number of the page.navigable.Pagination can be controlled
page prop.onPageChange prop.onFirstPage | onLastPage | onNextPage | onPreviousPage props.sm | md | lg | responsive.lg.responsive, the component will be responsive to the viewport.Screen prefix | Screen width | Component size |
|---|---|---|
|
| sm |
|
| md |
|
| lg |
withEdges is true.withEdges is false.withControls is false.@ocean-network-express/magenta-ui/icons package.Icon Slot | Position |
|---|---|
firstIcon | First edge button icon |
lastIcon | Last edge button icon |
previousIcon | Previous control button icon |
nextIcon | Next control button icon |
dotIcon | Dots icon component between pagination page number buttons |
boundaryCount prop.boundaryCount is 1.siblingCount prop.siblingCount is 1.renderTotalPages prop.renderTotalPages prop type is React.FC<{total: number}>renderPageInput prop.renderPageInput prop type is React.FC<NumberInputProps>disabled prop to true.disabled is false.aria-current="page" attribute.The pagination items are in tab order, with a tabindex of “0”.