Pagination
Page numbers with a window around the current one, or a compact previous/next pair.
Loading documentation…
Pagination is fully controlled: it renders the window of page numbers around
page, with ellipses where the run is broken, and calls onPageChange. It
never owns the page itself, because the page almost always lives in the URL.
siblings is how many numbers sit on each side of the current page. Two is
right for a wide table; one keeps the control narrow enough for a card footer.
compact drops the numbers and keeps a previous/next pair with a counter
between them. It is the right control under a narrow list, and on a phone.
DataTable has a footer slot made for this — put
the pagination there and it shares the table's single ring.
The current page, 1-based.
How many pages there are in total.
Fires with the requested page.
How many page buttons to show on each side of the current one.
Drops the numbers and keeps previous/next plus a counter.
Merged into the <nav>.