docs/components/navigation/Pagination

Pagination

Page navigation control.

import { Pagination } from '@ybouhjira/hyperkit';

Static examples

This component depends on app-level context (providers, services, or interactive setup) that does not fit the inline playground yet, so its examples are shown as static code.

#Props

PropTypeDefaultDescription
current *numberCurrent active page (1-based).
total *numberTotal number of pages.
onChange *(page: number) => voidCallback when the user navigates to a different page.
maxVisiblenumber5Maximum number of page buttons to show (excluding prev/next). When total > maxVisible, ellipsis is rendered.
classstringAdditional CSS class name.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-bg-tertiary
  • --sk-border
  • --sk-duration-fast
  • --sk-font-size-sm
  • --sk-height-md
  • --sk-radius-sm
  • --sk-space-xs
  • --sk-text-muted
  • --sk-text-on-accent
  • --sk-text-primary
  • --sk-text-secondary