Skip to content

Pagination

Move through a long collection with clear bounds.

DataNavigation
npx shadcn@latest add @silicon-ui/pagination

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

    • components/silicon-ui/pagination/pagination.tsx
    • components/silicon-ui/pagination/pagination.module.css
  3. Add the foundation, once per app, for the design and motion tokens

    npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

usage.tsx
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