1.0.24 • Published 8 months ago

@leafygreen-ui/pagination v1.0.24

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

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
1.0.24

8 months ago

1.0.23

8 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

10 months ago

1.0.19

11 months ago

1.0.19-popover.0

11 months ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

2 years ago

2.0.0-alpha.0

1 year ago

2.0.0-alpha.1

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.8-next.7

2 years ago

1.0.8-next.6

2 years ago

1.0.8-next.5

2 years ago

1.0.8-next.4

2 years ago

1.0.8-next.3

2 years ago

1.0.8-next.2

2 years ago

1.0.8-next.1

2 years ago

1.0.8-next.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago