Pagination
Installation
$npx shadcn-macos@latest add pagination
Examples
Props
<Pagination />| Prop | Type | Default | Description |
|---|---|---|---|
| page* | number | — | Current active page (1-based). |
| totalPages* | number | — | Total number of pages. |
| onPageChange* | (page: number) => void | — | Called when the user selects a different page. |
| siblingCount | number | 1 | How many page numbers to show on each side of the current page. |
| className | string | — | Custom CSS class names. |