Basic

<Pagination total={10} value={5} />

With edge controls

<Pagination total={20} value={10} withEdges />

Link-based navigation

<Pagination
  total={8}
  value={3}
  getHref={(page) => `/posts?page=${page}`}
/>

Colors and sizes

<Pagination total={10} value={3} color="violet" />
<Pagination total={10} value={3} color="green" size="sm" />
<Pagination total={10} value={3} size="lg" radius="xl" />

Disabled

<Pagination total={10} value={5} disabled />

Props

PropTypeDefaultDescription
totalnumberTotal number of pages (required)
valuenumber1Currently active (1-based) page number
siblingsnumber1Page buttons shown on each side of the active page
boundariesnumber1Page buttons always visible at start and end
getHref(page: number) => stringReturns href for a page; items render as <a>
size'xs'|'sm'|'md'|'lg'|'xl'Controls the size of pagination items
radius'xs'|'sm'|'md'|'lg'|'xl'|stringBorder radius of each pagination item
colorstringAccent color applied to the active page item
withEdgesbooleanfalseRenders first/last page edge navigation buttons
withControlsbooleantrueRenders previous and next navigation buttons
disabledbooleanfalseDisables all pagination items
classstringAdditional CSS class names
styleobjectInline styles