Components/Pagination

Pagination

Newnavigation

Page navigation control with previous/next buttons, active page state, and current-page semantics.

import { Pagination } from '@/components/forge'

Preview

Pagination

Code Example

Props

PropTypeDefaultRequiredDescription
pagenumber-YesCurrent page
totalPagesnumber-YesTotal number of pages
onPageChange(page: number) => void-NoCallback when a page is selected

Variants

default

Accessibility

  • Wrapped in a nav with aria-label="Pagination"
  • Active page receives aria-current="page"
  • Previous and next buttons disable at boundaries

Related Components