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