Skip to content
PixiKit

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
NameTypeDefaultDescription
pagenumberNoneThe current page, starting at 1, when you hold the state.
defaultPagenumber1The page shown at first, when the control holds the state.
onPageChange(page: number) => voidNoneCalled with the page the user goes to.
totalnumberNoneHow many items there are in all; pages are worked out with `pageSize`.
pageSizenumber10How many items fit on a page.
pageCountnumberNoneThe number of pages, when you do not have a total.
siblingsnumber1Pages shown on each side of the current one.
boundariesnumber1Pages 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.
showSummarybooleanfalseShows "Showing 21 to 30 of 248" with numbers that roll.
pageSizesnumber[]NoneThe choices of a "Rows per page" select; leave out to hide it.
onPageSizeChange(size: number) => voidNoneCalled with the rows per page the user picks; hold `pageSize` yourself.
showJumpbooleanfalseShows a small "Go to page" field.
loadingbooleanfalseShows the load-more button as busy while the next page is fetched.
disabledbooleanfalseTurns off every control.
ariaLabelstring"Pagination"Name for the navigation landmark, read by screen readers.
classNamestringNone

Related