SlidePagination
A pagination control where the active indicator slides between pages rather than instantly switching. The active background uses shared layoutId so the indicator visibly travels from one item to the next.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/slide-pagination
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| pageCount | number | undefined | Total number of pages |
| page | number | undefined | Controlled current page |
| defaultPage | number | 1 | Initial current page (uncontrolled) |
| siblingCount | number | 1 | Visible pages around the current one |
| onChange | (page: number) => void | undefined | Page change callback |
| showControls | boolean | true | Show previous / next buttons |