@unleashit/pagination
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Pagination

NPM npm (scoped) npm bundle size

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.

pagination component

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

Dependents (0)

Package Sidebar

Install

npm i @unleashit/pagination

Weekly Downloads

203

Version

2.0.2

License

MIT

Unpacked Size

57.1 kB

Total Files

43

Last publish

Collaborators

  • unleashit