Skip to content

Pagination

React

Ruled page numbers that collapse long runs.

Install

$ npx shadcn@latest add https://spotcheckui.com/r/pagination.json

No motion engine needed.

Usage

import { Pagination } from "@/components/spotcheck/pagination"

<Pagination page={page} pageCount={24} onPageChange={setPage} />

Props

  • page * RequirednumberDefault —The current page, counted from 1.
  • pageCount * RequirednumberDefault —
  • onPageChange * Required(page: number) => voidDefault —
  • classNamestringDefault —

Keyboard

TabMove between pages
EnterGo to the page

Reduced motion

Nothing here animates.