Skip to main content

Pagination

Navigation controls for paging through data. Supports numbered pages and a simple previous/next variant.

Basic Usage

Simple Variant

Sizes

Disabled

Mobile considerations

  • For mobile, prefer variant="simple" (previous / next + "page X of Y") — numbered pagination crowds narrow viewports.
  • Page buttons hit 44px tap target on size="md" / lg". For size="sm" on mobile, switch to simple variant or wrap in a row with extra padding.
  • Consider infinite-scroll or "Load more" patterns instead of pagination for mobile-first content feeds.

Props

PropTypeDefaultDescription
totalPagesnumber-Total number of pages
currentPagenumber-Currently active page (1-indexed)
onChange(page: number) => void-Callback when page changes
siblingCountnumber1Number of sibling pages to show around current
variant'default' | 'simple''default'Visual variant
size'sm' | 'md' | 'lg''md'Size preset
disabledbooleanfalseDisable all pagination controls
classNamestring-Additional CSS class name
styleCSSProperties-Additional inline styles