Pagination
Allows the user to select a specific page from a range of pages.
Examples
import { Pagination } from 'kalki-design'
<Pagination>Click me</Pagination>Installation
npx kalki-design add paginationUsage
import { Pagination } from 'kalki-design'
export default function Example() {
return <Pagination />
}API Reference
| Name | Type | Default | Description |
|---|---|---|---|
Nametotal | Typenumber | Default— | DescriptionTotal number of data items. |
Namepage | Typenumber | Default— | DescriptionThe current active page. |
NameonChange | Type(page: number) => void | Default— | DescriptionCallback fired when page changes. |
NamepageSize | Typenumber | Default10 | DescriptionNumber of items per page. |
NamesiblingCount | Typenumber | Default1 | DescriptionNumber of pages to show around current page before folding. |
Namesize | Type'sm' | 'md' | 'lg' | Default'md' | DescriptionSize of the pagination items. |
NameshowEdges | Typeboolean | Defaulttrue | DescriptionWhether to show previous/next buttons. |