Stylish Pagination
A pager control for long lists — the web "Pagination" pattern from shadcn/ui, MUI, and Ant Design.
The page-number window keeps the first/last boundaryCount pages always visible and shows a window of up to siblingCount * 2 + 1 pages around the current page, collapsing the rest with ellipses.
Parameters
The current page (1-based).
Called with the new page when the user navigates.
Modifier applied to the root row.
Total number of pages. Must be at least 1.
Number of page buttons shown on each side of the current page before ellipsis collapse. Defaults to 1.
Number of always-visible pages at the start and end. Defaults to 1.
When false, all controls are disabled.
Corner shape of the page buttons. Defaults to RoundedCornerShape with DefaultStylishDimensions.connectedCornerRadius.
ButtonColors for the current page button. Defaults to the primary container.
ButtonColors for other page buttons. Defaults to the grouped-container look.