Pagination
Move between pages of a long list or table.
import { Pagination } from "@sagui/ui";Loading demo
When to use
- Under a data table with more than one page of results.
When not to use
- Use infinite loading for feeds, and Stepper for steps.
Installation
Install the package and import the styles once. The installation guide covers the Tailwind setup.
$ npm install @sagui/uiUsage
import { Pagination } from "@sagui/ui";
<Pagination page={page} pageCount={24} onPageChange={setPage} summary="Showing 1–20 of 468" />Examples
Compact
Loading demo
Accessibility
- Renders a
navlabeled “Pagination”. The current page hasaria-current="page". - Gaps are hidden from screen readers, and every page button has a full label.