Pagination

Page navigation with previous, next and numbered pages.

Import

import { Pagination } from "@tarve/core";

Usage

Pagination.tsx
import { Pagination } from "@tarve/core";

let page = 3;

<Pagination
  page={page}
  pageCount={12}
  onPageChange={(next) => {
    page = next;
  }}
/>

Props

PropTypeDefault
page required number—
pageCount required number—
disabled boolean—
onPageChange (page: number) => void—
siblingCount number1

Common props

Shared by every component. See descriptions →

childrenhighlightidkeymotionFromonHighlightonPasteonTransitionEndrovingGroupstyle