- Pagination
- ...
Using npm:
$ npm install @idares-ui/react
Using yarn:
$ yarn add @idares-ui/react
import { Pagination } from "@idares-ui/react";
...
<Pagination />
...
import { Pagination } from "@idares-ui/react";
...
const [page, setPage] = React.useState(1);
...
<Pagination page={page} setPage={setPage} />
...
Prop | Type | Default |
---|---|---|
page | number | 1 |
perPage | number | 10 |
count | number | 60 |
setPage | function | void |
baseSize | bsType | "xl" |
baseColor | string | null |
bsType = "xs" | "sm" | "md" | "lg" | "xl" | <css-size-units>
View the full Storybook documentation here