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

@leafygreen-ui/pagination

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/pagination

leafyGreen UI Kit Pagination

  • 1.0.24
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-33.05%
Maintainers
5
Weekly downloads
 
Created
Source

Pagination

npm (scoped)

View on MongoDB.design

Installation

Yarn

yarn add @leafygreen-ui/pagination

NPM

npm install @leafygreen-ui/pagination

Example

Output HTML

Properties

PropTypeDescriptionDefault
itemsPerPagenumberNumber of items visible on the current page.10
itemsPerPageOptionsnumber[]Options to be shown in the Select to indicate items per page.[10,25,50]
onItemsPerPageOptionChangeSelectProps['onChange']onChange prop passed to the Select component that controls the items per page.
currentPagenumberCurrent index of page shown (starting from 1)1
onCurrentPageOptionChangeSelectProps['onChange']onChange prop passed to the Select component that controls the current page index.
numTotalItemsnumberTotal number of records.
onBackArrowClickAccessibleIconButtonProps['onClick']Function called when the forward arrow icon is clicked
disableBackArrowButtonbooleanDisables the back arrow button. Back arrow button is only disabled on the first page by defaultfalse
onForwardArrowClickAccessibleIconButtonProps['onClick']Function called when the forward arrow icon is clicked
disableForwardArrowButtonbooleanDisables the forward arrow button. Forward arrow button is only disabled on the last page by defaultfalse

FAQs

Package last updated on 26 Apr 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