Pagination

Page navigation with smart ellipsis. Always shows the first, last, current page, and configurable neighbors.

Usage

import { Pagination } from '@bwo-ui/react';

const [page, setPage] = useState(1);

<Pagination
  page={page}
  pageCount={20}
  onPageChange={setPage}
/>

Props

PropTypeDefaultDescription
pagenumber1-based current page.
pageCountnumberTotal page count (>= 1).
onPageChange(page: number) => voidCalled with the next page number.
siblingCountnumber1Neighbors shown on either side of the active page.
boundaryCountnumber1Pages always shown at the start/end (before the ellipsis).
radius'none' | 'light' | 'sm' | 'md' | 'lg' | 'pill'Shared radius preset applied via data-radius cascade.