Pagination
Page navigation.
Import
tsx
import { ZPagination } from "@zurto/ui";Usage
tsx
<ZPagination page={1} totalPages={10} onChange={setPage} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
page | number | 1 | Current page |
totalPages | number | – | Total pages |
onChange | (page: number) => void | – | Change handler |
showFirst | boolean | true | Show first button |
showLast | boolean | true | Show last button |