Pagination

Core

Move through a long collection with clear bounds.

pnpm dlx shadcn@latest add https://wui.alann.works/r/pagination.json

API Reference

PropTypeDefault
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
Categories
data
Dependencies
lucide-reactmotion