Gathering detailed insights and metrics for react-js-pagination
Gathering detailed insights and metrics for react-js-pagination
Gathering detailed insights and metrics for react-js-pagination
Gathering detailed insights and metrics for react-js-pagination
@yamada-ui/pagination
Yamada UI pagination component
@types/react-js-pagination
TypeScript definitions for react-js-pagination
react-custom-pagination
A simple and responsive pagination for react.
replace-js-pagination
Replacement for react-js-pagination. Simple, easy to use component for pagination. Compatible with bootstrap paginator stylesheets
npm install react-js-pagination
Typescript
Module System
Node Version
NPM Version
JavaScript (99.07%)
HTML (0.76%)
Less (0.17%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
CC0-1.0 License
350 Stars
155 Commits
99 Forks
8 Watchers
26 Branches
11 Contributors
Updated on May 21, 2025
Latest Version
3.0.3
Package Id
react-js-pagination@3.0.3
Size
1.04 MB
NPM Version
6.11.3
Node Version
12.12.0
Published on
Feb 18, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
39
A ReactJS dumb component to render a pagination.
The component comes with no built-in styles. HTML layout compatible with Bootstrap 3 pagination stylesheets.
If you would like it to work for Bootstrap 4, you will need to add 2 additional props when using this component:
itemClass="page-item"
linkClass="page-link"
Install react-js-pagination
with npm:
$ npm install react-js-pagination
Very easy to use. Just provide props with total amount of things that you want to display on the page.
1import React, { Component } from "react"; 2import ReactDOM from "react-dom"; 3import Pagination from "react-js-pagination"; 4require("bootstrap/less/bootstrap.less"); 5 6class App extends Component { 7 constructor(props) { 8 super(props); 9 this.state = { 10 activePage: 15 11 }; 12 } 13 14 handlePageChange(pageNumber) { 15 console.log(`active page is ${pageNumber}`); 16 this.setState({activePage: pageNumber}); 17 } 18 19 render() { 20 return ( 21 <div> 22 <Pagination 23 activePage={this.state.activePage} 24 itemsCountPerPage={10} 25 totalItemsCount={450} 26 pageRangeDisplayed={5} 27 onChange={this.handlePageChange.bind(this)} 28 /> 29 </div> 30 ); 31 } 32} 33 34ReactDOM.render(<App />, document.getElementById("root")); 35
Check Live example
Name | Type | Default | Description |
---|---|---|---|
totalItemsCount | Number | Required. Total count of items which you are going to display | |
onChange | Function | Required. Page change handler. Receive pageNumber as arg | |
activePage | Number | 1 | Required. Active page |
itemsCountPerPage | Number | 10 | Count of items per page |
pageRangeDisplayed | Number | 5 | Range of pages in paginator, exclude navigation blocks (prev, next, first, last pages) |
prevPageText | String / ReactElement | ⟨ | Text of prev page navigation button |
firstPageText | String / ReactElement | « | Text of first page navigation button |
lastPageText | String / ReactElement | » | Text of last page navigation button |
nextPageText | String / ReactElement | ⟩ | Text of next page navigation button |
getPageUrl | Function | Generate href attribute for page | |
innerClass | String | pagination | Class name of <ul> tag |
activeClass | String | active | Class name of active <li> tag |
activeLinkClass | String | Class name of active <a> tag | |
itemClass | String | Default class of the <li> tag | |
itemClassFirst | String | Class of the first <li> tag | |
itemClassPrev | String | Class of the previous <li> tag | |
itemClassNext | String | Class of the next <li> tag | |
itemClassLast | String | Class of the last <li> tag | |
disabledClass | String | disabled | Class name of the first, previous, next and last <li> tags when disabled |
hideDisabled | Boolean | false | Hide navigation buttons (prev, next, first, last) if they are disabled. |
hideNavigation | Boolean | false | Hide navigation buttons (prev page, next page) |
hideFirstLastPages | Boolean | false | Hide first/last navigation buttons |
linkClass | String | Default class of the <a> tag | |
linkClassFirst | String | Class of the first <a> tag | |
linkClassPrev | String | Class of the previous <a> tag | |
linkClassNext | String | Class of the next <a> tag | |
linkClassLast | String | Class of the last <a> tag |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/4 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
124 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More