Pagination
CoreMove through a long collection with clear bounds.
pnpm dlx shadcn@latest add https://wui.alann.works/r/pagination.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
page* | number; pageCount: number; onPageChange: (page: number) => void; label?: string } | required |
enter* | (shift: number) => ({ opacity: 0, x: `${slot * shift}%` }), | required |
center* | { opacity: 1, x: "0%" }, | required |
exit* | (shift: number) => ({ opacity: 0, x: `${-slot * shift}%`, transition: { x: motionTokens.spring.smooth, opacity: { duration: motionTokens.duration.instant, ease: [...motionTokens.ease.standard] } } }), | required |