@unleashit/pagination
v2.0.4
Published
Responsive pagination component for React.
Downloads
156
Maintainers
Readme
Pagination
Responsive pagination component for React. Just give it a total number of items and the current offset. It then calls a handler with the new offset as needed.
Features
- Lightweight UI component. Doesn't care about data, caching or state. Send it the total items and current offset, and it renders the correct interface.
- Responsive, with a container query to show the right amount of pages
- Gracefully supports unlimited pages
- Automatically hides next/prev buttons when not needed
- Customizable labels
- Default CSS with light/dark mode available
- CSS module support can override internal styles with a custom module
Install
npm install @unleashit/pagination
Documentation
https://unleashit.github.io/npm-library/components/pagination
Demo
https://npm-library-demo.vercel.app/pagination