Gathering detailed insights and metrics for rc-pagination
Gathering detailed insights and metrics for rc-pagination
Gathering detailed insights and metrics for rc-pagination
Gathering detailed insights and metrics for rc-pagination
npm install rc-pagination
88.5
Supply Chain
91.4
Quality
87
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
667 Stars
723 Commits
329 Forks
26 Watching
11 Branches
145 Contributors
Updated on 19 Nov 2024
Minified
Minified + Gzipped
TypeScript (92.64%)
Less (5.36%)
JavaScript (2%)
Cumulative downloads
Total Downloads
Last day
-1.8%
276,339
Compared to previous day
Last week
3.2%
1,539,441
Compared to previous week
Last month
6.1%
6,376,829
Compared to previous month
Last year
22.8%
66,660,198
Compared to previous year
3
27
React Pagination Component.
npm install
npm start
Online example: https://pagination-react-component.vercel.app
Local example: npm run start
then http://localhost:9001
1import Pagination from 'rc-pagination'; 2 3ReactDOM.render(<Pagination />, container);
// prettier-ignore
Parameter | Description | Type | Default |
---|---|---|---|
disabled | disable pagination | Bool | - |
align | align of pagination | start | center | end | undefined |
defaultCurrent | uncontrolled current page | Number | 1 |
current | current page | Number | undefined |
total | items total count | Number | 0 |
defaultPageSize | default items per page | Number | 10 |
pageSize | items per page | Number | 10 |
onChange | page change callback | Function(current, pageSize) | - |
showSizeChanger | show pageSize changer | boolean | SelectProps | false when total less than totalBoundaryShowSizeChanger , true when otherwise |
totalBoundaryShowSizeChanger | when total larger than it, showSizeChanger will be true | number | 50 |
pageSizeOptions | specify the sizeChanger selections | Array | ['10', '20', '50', '100'] |
onShowSizeChange | pageSize change callback | Function(current, size) | - |
hideOnSinglePage | hide on single page | Bool | false |
showPrevNextJumpers | show jump-prev, jump-next | Bool | true |
showQuickJumper | show quick goto jumper | Bool / Object | false / {goButton: true} |
showTotal | show total records and range | Function(total, [from, to]) | - |
className | className of pagination | String | - |
simple | when set, show simple pager | Bool / { readOnly?: boolean; } | - |
locale | to set l10n config | Object | zh_CN |
style | the style of pagination | Object | {} |
showLessItems | show less page items | Bool | false |
showTitle | show page items title | Bool | true |
itemRender | custom page item renderer | Function(current, type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next', element): React.ReactNode | (current, type, element) => element | |
prevIcon | specify the default previous icon | ReactNode | (props: PaginationProps) => ReactNode | |
nextIcon | specify the default next icon | ReactNode | (props: PaginationProps) => ReactNode | |
jumpPrevIcon | specify the default previous icon | ReactNode | (props: PaginationProps) => ReactNode | |
jumpNextIcon | specify the default next icon | ReactNode | (props: PaginationProps) => ReactNode |
rc-pagination is released under the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 10/22 approved changesets -- score normalized to 4
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-18
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