Component docs
Loading
"use client";
import { DataPagination } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
pageCount (required) | number | — | — |
value | number | — | Current value (controlled); null where it means "nothing selected". |
defaultValue | number | — | Initial value when uncontrolled. |
nextLabel | ReactNode | — | — |
onValueChange | (value: number) => void | — | Called with the new value (only when it changes). |
previousLabel | ReactNode | — | — |
pageCountrequirednumber
valuenumber
Current value (controlled); null where it means "nothing selected".
defaultValuenumber
Initial value when uncontrolled.
nextLabelReactNode
onValueChange(value: number) => void
Called with the new value (only when it changes).
previousLabelReactNode
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<DataPagination pageCount={8} value={2} />