Description
react-paginate is a ReactJS component that renders a pagination control, the row of page numbers and previous and next buttons used to move through long lists of results. It does not provide styling of its own, so you write a small amount of CSS to match your design. The component takes a total page count and then decides how to display the pages, showing a range of pages around the current one, a set of margin pages at each end, and ellipsis breaks where pages are skipped. Props control the page range and margins, the labels of the previous, next and break buttons, the ARIA labels of the ellipsis elements, the class names of the list items and links, and an onPageChange function that runs when the user picks a page. The README explains how to install it with npm and shows how to use it with a list of objects, and the project's demo code shows how to fetch sample data from the GitHub API and keep two pagination widgets in sync. The component is useful for tables, search results and feeds where the data is split across pages. Because it manages only the controls, the app still fetches or slices the data for the page the user selects. The package is maintained on GitHub, where its props and examples are documented.…
Highlights
- Pagination controls for React
- Page range and margin page settings
- Ellipsis breaks with ARIA labels
- Custom labels and class names
- onPageChange callback
- No built-in CSS, you style it
Ratings & Reviews
No ratings yet
Be the first to rate react-paginate.
People also visit

react-ultimate-pagination
React.js pagination component based on ultimate-pagination
react-paginate FAQ
What does react-paginate do?
It renders pagination controls for React, so users can move between pages of results.
Does it come with styles?
No. The README says you write your own CSS to get the look you want.
How does the app get the page data?
The component only handles the controls. Your code fetches or slices the data for the selected page through onPageChange.
Can I change the labels?
Yes. The previous, next and break labels can be set as props, along with their ARIA labels.
How do I install it?
Run npm install react-paginate.
Is there a demo?
The README links a CodePen demo that fetches sample data from the GitHub API.
What are the best react-paginate alternatives?
Popular alternatives to react-paginate include react-js-pagination, react-ultimate-pagination and react-pager. See all react-paginate alternatives
















