Buttons that move through the pages of a table or list.
Installation
Examples
Default
page, from 1, of count, with onPageChange called with the page to show. The current page takes aria-current="page" and a selected row's fill. Small, to sit in a table's footer or under a list.
demo.tsx
Many pages
Past seven pages, it keeps seven slots: the first, the last, and the current with its neighbours, with an ellipsis where pages are skipped, so its buttons don't move as you page.
long.tsx
Anatomy
Each part's data-slot, which a theme styles, is beside it.
bun add @roprgm/ui