PaginationItem

The individual item rendered inside Pagination. Its type determines what it renders: a page number button, a first/previous/next/last nav control (with the matching registry icon), or a...

The individual item rendered inside Pagination. Its type determines what it renders: a page number button, a first/previous/next/last nav control (with the matching registry icon), or a non-interactive ellipsis.

<PaginationItem page={3} isSelected />
<PaginationItem type="next" onClick={goNext} />
<PaginationItem type="start-ellipsis" />

Demos

For usage examples, visit the component demo page: Pagination

Import

import { PaginationItem } from '@soroush.tech/design-system/Pagination'

Props

PropTypeDefaultDescription
type'page' | 'first' | 'previous' | 'next' | 'last' | 'start-ellipsis' | 'end-ellipsis''page'What the item renders. Ellipses render as a span, not a button.
pageReactNode-The page number/content for type="page".
isSelectedbooleanfalseActive styling + aria-current="page".
colorkeyof Theme['palette']'primary'Selected-state color.
variant'text' | 'outlined''text'Item style.
shape'circular' | 'rounded''circular'Corner shape - circular pill or theme.radii.md.
sizekeyof Theme['sizes']'md'Item dimensions and font size.
disabledbooleanfalseDisables the item.
asElementType'button'Overrides the root element (e.g. 'a' for router links).

Native button attributes (onClick, aria-label, ...) and space props pass through. Nav icons come from the Icon registry: first_page, chevron_left, chevron_right, last_page.

Source code

If this page does not answer your question, have a look at the implementation of the component for more detail.