Skip to main content

PaginationButton

One button of Pagination's onChange mode (internal; use Pagination).

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

One button of Pagination's onChange mode (internal; use Pagination).

Accessibility​

Arrow keys move between items; the current item is marked aria-current. Tabs follow the WAI-ARIA tabs pattern (roving tabindex, Home/End).

Install and import​

npx shadcn@latest add @prism/pagination-button
import { PaginationButton } from '@/components/prism/PaginationButton';

In a no-build prototype, read it from the bundle instead: const { PaginationButton } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
pagenumber | nullYesThe page this button goes to; null for the current page.
change(page: number) => void—