Pagination

Page navigation control across data tables, lists, and editorial documentation supporting numeric pages, simple compact status, and article card variants.

// Plain markup
import { Pagination } from "@shavin/ui";

Numeric Page Numbers (Default)

Current Page: 3 of 10
const [page, setPage] = useState(3);

<Pagination page={page} totalPages={10} onPageChange={setPage} />

Simple / Compact Status

<Pagination variant="simple" page={page} totalPages={5} onPageChange={setPage} />

Cards Variant (Doc / Content Navigation)

<Pagination
  variant="cards"
  prevTitle="Foundations Overview"
  nextTitle="Typography Overview"
/>

Props Specification

PropTypeDefault
pagenumber
totalPagesnumber
onPageChange(page: number) => void
prevLabelstring
nextLabelstring
prevTitlestring
nextTitlestring
prevHrefstring
nextHrefstring
variant"numeric" | "simple" | "cards" | "sm""numeric"
size"sm" | "md" | "lg""md"
Configure Theme
Theme
Accent Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font