Usage
Pagination navigates between pages of a result set. It renders a Page {page} of {pageCount} label at
left and a set of controls at right. It ships as a controlled component — the caller owns page and
responds to onPageChange — and supports two types: PaginationType.Simple (Previous/Next buttons) and
PaginationType.Numbered (chevron controls plus numbered page buttons with ellipsis truncation).
Simple is the only type that supports an unknown total page count, which makes it the right choice for
cursor-based pagination. DataTable uses Simple internally for its built-in pagination footer.
Simple.Numbered.SegmentedControl instead, since those steps are not interchangeable pages of the same content.TabMenu or TabNav.Page {page} of {pageCount} (or Page {page} when the total is unknown)
— it is already localized and formats numbers per locale.Pagination does not track its own page state — the caller supplies page and
updates it in onPageChange.pageCount (or pass -1) with PaginationType.Simple when the total is
not known, e.g. cursor-based pagination. The label degrades to Page {page} and the Next control stays
enabled rather than prematurely disabling.PaginationType.Numbered always shows the first and last page. With the default
siblingCount of 1, boundary pages show 6 slots (1 2 3 4 … 10) and middle pages show 7
(1 … 4 5 6 … 10) — two ellipses plus symmetric siblings cannot fit in 6 slots.hideLabel to render only the controls, right-aligned.Do
onPageChange fires, so keyboard and screen
reader users land somewhere meaningful.Numbered when users benefit from jumping to a specific page, not just stepping through sequentially.Simple for cursor-based or streaming data sources where the total page count is not known.Don't
pageCount to Numbered that you can't compute reliably — Numbered requires a known total.Pagination already covers boundary disabling and
localization.Pagination renders a <nav> landmark with an accessible name, and Numbered renders page numbers in an
<ol> with aria-current="page" on the active item. See Accessibility for the full
contract.
DataTable renders Pagination
internally for its built-in pagination footer.