Pagination
Display active page and navigate between multiple pages
Import
Source
Docs
Package
Usage
Color
Size
xs
sm
md
lg
xl
Radius
xs
sm
md
lg
xl
Controlled
To control component state provide page
and onChange
props:
Siblings
Control amount of active item siblings with siblings
prop:
1 sibling (default)
2 siblings
3 siblings
Boundaries
Control amount of items displayed after previous and before next buttons with boundaries
prop:
1 boundary (default)
2 boundaries
3 boundaries
Accessibility
Pagination renders a regular button element. To include aria-label for screen reader support
provide getItemAriaLabel
function to generate aria-labels:
use-pagination hook
If you need more flexibility @mantine/hooks exports use-pagination hook, you can use it to create your own pagination component.
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback