Skip to main content
Mantı UI logoMantı UIv0.12.1
Studio

Pagination

count is the total item count and pageSize is the number per page. siblingCount controls nearby page buttons.

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

export default function PaginationBasic() {
  return (
    <Pagination
      count={200}
      pageSize={20}
      defaultPage={3}
      siblingCount={1}
      variant="primary"
    />
  );
}

Many pages

Sizes

API

PropTypeDefaultDescription
countnumberTotal number of items across all pages.
pageSizenumberItems per page.
pagenumberControlled current page (1-based).
defaultPagenumberInitial page for uncontrolled usage.
onPageChange(page: number) => voidCalled whenever the page changes.
siblingCountnumberPages shown on each side of the current page.
size'sm' | 'md' | 'lg''md'Control size.
variantMantiVariant'primary'Variant applied to the active page.

Styling

Anatomy

PartSelectorDescription
root[data-scope="pagination"][data-part="root"]The `<nav>` wrapper carrying scope, size, and variant.
prev-trigger[data-scope="pagination"][data-part="prev-trigger"]Button that moves to the previous page.
next-trigger[data-scope="pagination"][data-part="next-trigger"]Button that moves to the next page.
item[data-scope="pagination"][data-part="item"]A single page button; the active one carries `data-selected`.
ellipsis[data-scope="pagination"][data-part="ellipsis"]The gap marker shown when pages are collapsed.

Tokens

TokenControls
--manti-pagination-sizesize

Last updated

Built end-to-end with Manti UI components and design tokens. Manti UI is a framework-agnostic design system on Zag.js.

GitHub