Page Dial
Pagination with a page window that never hides a single page, a marker that slides between numbers, a rolling summary and a small page-size and jump control.
pixikit.com/docs/app-ui/navigation/page-dial
Customize
Total
Page size10
Page count
Siblings1
Boundaries1
Variant
Show summary
Show jump
Loading
Disabled
Props
17| Name | Type | Default | Description |
|---|---|---|---|
page | number | None | The current page, starting at 1, when you hold the state. |
defaultPage | number | 1 | The page shown at first, when the control holds the state. |
onPageChange | (page: number) => void | None | Called with the page the user goes to. |
total | number | None | How many items there are in all; pages are worked out with `pageSize`. |
pageSize | number | 10 | How many items fit on a page. |
pageCount | number | None | The number of pages, when you do not have a total. |
siblings | number | 1 | Pages shown on each side of the current one. |
boundaries | number | 1 | Pages always shown at each end. |
variant | "numbers" | "simple" | "load-more" | "numbers" | `numbers` shows page buttons, `simple` shows previous, next and "Page 3 of 25", `load-more` shows one button. |
showSummary | boolean | false | Shows "Showing 21 to 30 of 248" with numbers that roll. |
pageSizes | number[] | None | The choices of a "Rows per page" select; leave out to hide it. |
onPageSizeChange | (size: number) => void | None | Called with the rows per page the user picks; hold `pageSize` yourself. |
showJump | boolean | false | Shows a small "Go to page" field. |
loading | boolean | false | Shows the load-more button as busy while the next page is fetched. |
disabled | boolean | false | Turns off every control. |
ariaLabel | string | "Pagination" | Name for the navigation landmark, read by screen readers. |
className | string | None |