Pagination
Page navigation with previous / next links. Page numbers stay LTR (1 → 2 → 3) in both writing directions. Pass custom children on Previous / Next to localize labels.
Basic
Previous / next with page links and an ellipsis for longer ranges.
Installation
CLI
Also needs
npx @sonojs/ui@latest add button && npm i lucide-reactComposition
structure
Usage
pagination.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| isActive | boolean | false | On `PaginationLink` — marks the current page. |
| size | Button size | "icon" | On `PaginationLink` — defaults to icon; prev/next use default. |
| text | string | "Previous" / "Next" | On `PaginationPrevious` / `PaginationNext` — visible label. |
| href | string | — | Native anchor href (swap for Next.js `Link` if needed). |