use-pagination
Manages pagination state
Import
Source
Docs
Package
Usage
use-pagination
is a state management hook for Pagination component,
it manages pagination with controlled and uncontrolled state:
Controlled
The hook supports controlled mode, provide page
and onChange
props to manage state from outside:
Siblings
Control number of active item siblings with siblings
:
1 sibling (default)
2 siblings
3 siblings
Boundaries
Control number of items on each boundary with boundaries
:
1 boundary (default)
2 boundaries
3 boundaries