Pagination
Browse pages of records with previous, next, and current-page controls.
Basic usage
Pass the total number of records as count and use one-based pages. Control page and onPageChange to fetch or select the matching records.
- Order 1
- Order 2
- Order 3
- Order 4
- Order 5
- Order 6
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
Root.count | number (records) | 0 |
Root.defaultPage / page | number | 1 |
Root.defaultPageSize / pageSize | positive number | 10 |
Root.onPageChange | ({ page, pageSize }) => void | — |
Root.size | sm | md | lg | md |