Pagination

Move through a long collection with clear bounds.

npx shadcn@latest add @silicon-ui/pagination
datanavigation
Loading…

Installation

With the shadcn CLI

npx shadcn@latest add @silicon-ui/pagination

Manually

  1. Install the dependencies.

    npm install lucide-react motion
  2. Copy these files into your project. Shared files are skipped if you already have them.

    • components/silicon-ui/pagination/pagination.tsx
    • components/silicon-ui/pagination/pagination.module.css
  3. Install the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

Source codetsx
import { Pagination } from "@/components/silicon-ui/pagination/pagination";

API reference

PropTypeDefault
page*number—
pageCount*number—
onPageChange*(page: number) => void—
labelstring"Pagination"

Dependencies

npm
lucide-reactmotion
Registry
silicon-motion-tokens