Skip to main content

Pagination

Usage

import Pagination from "@repo/ui/Pagination";

<Pagination total={10} page={page} onChange={(page) => setPage(page)} />;

Installation

npx the-dig@latest add Pagination

Props

Document whether page is one-based or zero-based for your integration, and provide an accessible current-page label for the active control.

PropTypeDefault
total *number-
page *number-
onChange *(page: number) => void-
classNamestring-