Search

Search components and blocks

Sign in

Pagination

Numbered pages with a shared layoutId pill sliding between the active number — the same technique behind the sidebar's active-tab highlight, applied here instead of a plain color swap.

pnpm dlx shadcn@latest add @ditherui/pagination
CustomerPlanMRR
Acme Inc.Pro$490
GlobexTeam$120
InitechPro$490

Install

$ pnpm dlx shadcn@latest add @ditherui/pagination

Props

pagenumber—
totalPagesnumber—
onPageChange(page: number) => void—
siblingCountnumber1

When to use the pagination

Use pagination for paged lists and tables. A shared layout pill slides between the active page numbers.

  • Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.

Suggested components