Skip to content

Pagination

Page navigation.

Import

tsx
import { ZPagination } from "@zurto/ui";

Usage

tsx
<ZPagination page={1} totalPages={10} onChange={setPage} />

Props

PropTypeDefaultDescription
pagenumber1Current page
totalPagesnumberTotal pages
onChange(page: number) => voidChange handler
showFirstbooleantrueShow first button
showLastbooleantrueShow last button

Released under the MIT License.