Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

org.webjars.npm:rc-pagination

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.webjars.npm:rc-pagination

WebJar for rc-pagination

  • 4.2.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

rc-pagination

React Pagination Component.

NPM version npm download build status Codecov bundle size dumi

Development

npm install
npm start

Examples

Online example: https://pagination-react-component.vercel.app Local example: npm run start then http://localhost:9001

Install

rc-pagination

Usage

import Pagination from 'rc-pagination';

ReactDOM.render(<Pagination />, container);

API

ParameterDescriptionTypeDefault
disableddisable paginationBool-
alignalign of paginationstart | center | endundefined
defaultCurrentuncontrolled current pageNumber1
currentcurrent pageNumberundefined
totalitems total countNumber0
defaultPageSizedefault items per pageNumber10
pageSizeitems per pageNumber10
onChangepage change callbackFunction(current, pageSize)-
showSizeChangershow pageSize changerBoolfalse when total less then totalBoundaryShowSizeChanger, true when otherwise
totalBoundaryShowSizeChangerwhen total larger than it, showSizeChanger will be truenumber50
pageSizeOptionsspecify the sizeChanger selectionsArray['10', '20', '50', '100']
onShowSizeChangepageSize change callbackFunction(current, size)-
hideOnSinglePagehide on single pageBoolfalse
showPrevNextJumpersshow jump-prev, jump-nextBooltrue
showQuickJumpershow quick goto jumperBool / Objectfalse / {goButton: true}
showTotalshow total records and rangeFunction(total, [from, to])-
classNameclassName of paginationString-
simplewhen set, show simple pagerBool / { readOnly?: boolean; }-
localeto set l10n configObjectzh_CN
stylethe style of paginationObject{}
showLessItemsshow less page itemsBoolfalse
showTitleshow page items titleBooltrue
itemRendercustom page item rendererFunction(current, type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next', element): React.ReactNode | (current, type, element) => element
prevIconspecify the default previous iconReactNode | (props: PaginationProps) => ReactNode
nextIconspecify the default next iconReactNode | (props: PaginationProps) => ReactNode
jumpPrevIconspecify the default previous iconReactNode | (props: PaginationProps) => ReactNode
jumpNextIconspecify the default next iconReactNode | (props: PaginationProps) => ReactNode

License

rc-pagination is released under the MIT license.

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc