1.0.2 • Published 9 years ago

react-simplest-pagination v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

react-simplest-pagination

This is simple pagination component for react.

How it looks like

npm.io

Installation

npm install --save react-simplest-pagination

Example

this is an example of usage

import Pagination from 'react-simplest-pagination'
...
<Pagination
  currentPage={state.page}
  totalPages={totalPages}
  onPageClick={this.setPage} />

Properties

propertytypedefaultdescription
currentPageintcurrent page number
totalPagesinttotal pages amount
onPageClickfunctioncallback on page click: onClick={(num) => onPageClick(num)}
containerStyleobjectreact style object like: {fontSize: 11}
buttonStyleobjectreact style object like: {fontSize: 11}

The best documentation

https://github.com/beornborn/react-simplest-pagination/blob/master/src/index.js

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago