pagination
v0.88.2arrow_drop_down






Called on change of an active page.
A component to render a pagination.
Called on click.
Called on key down.
An item of a pagination.
Name | Type | Default value | Description |
---|---|---|---|
aria-label | string | 'Pagination Navigation' | A pagination item can have an aria label. |
defaultActivePage | number | string | Initial activePage value. | |
activePage | number | string | Index of the currently active page. | |
boundaryRange | number | string | 1 | Number of always visible pages at the beginning and end. |
disabled | bool | A pagination can be disabled. | |
ellipsisItem | custom | '...' | A shorthand for PaginationItem. |
firstItem | custom | {
'aria-label': 'First item',
content: '«',
} | A shorthand for PaginationItem. |
lastItem | custom | {
'aria-label': 'Last item',
content: '»',
} | A shorthand for PaginationItem. |
nextItem | custom | {
'aria-label': 'Next item',
content: '⟩',
} | A shorthand for PaginationItem. |
pageItem | custom | {} | A shorthand for PaginationItem. |
prevItem | custom | {
'aria-label': 'Previous item',
content: '⟨',
} | A shorthand for PaginationItem. |
onPageChange | function | React’s original SyntheticEvent. | |
siblingRange | number | string | 1 | Number of always visible pages before and after the current one. |
totalPages (required) | number | string | Total number of pages. | |
active | bool | A pagination item can be active. | |
disabled | bool | A pagination item can be disabled. | |
onClick | function | React’s original SyntheticEvent. | |
onKeyDown | function | React’s original SyntheticEvent. | |
type | 'ellipsisItem' | 'firstItem' | 'prevItem' | 'pageItem' | 'nextItem' | 'lastItem' | A pagination should have a type. |