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

PropTypeDefaultDescription
pageCountnumberundefinedTotal number of pages
pagenumberundefinedControlled current page
defaultPagenumber1Initial current page (uncontrolled)
siblingCountnumber1Visible pages around the current one
onChange(page: number) => voidundefinedPage change callback
showControlsbooleantrueShow previous / next buttons