simple-react-paginator
v1.1.3
Published
Simple react paginator
Downloads
42
Maintainers
Readme
simple-react-paginator
Import the paginator.
import Pagination from 'simple-react-paginator';
Usage
<Pagination currentPage={currentPage} delimiter={delimiter} totalItems={totalNumberOfItems} fetchData={(page)=> console.log({newPage: page})}
/>
Props
| Name | Type | Description |
| ------------------------ | ---------- | -------------------------------------------------------------------------------------------- |
| currentPage
| Number
| Required. The current page which has a default value of 1.
| totalNumberOfItems
| Number
| Required. The total number of items. |
| delimiter
| Number
| Required. The number of items per page. |
| fetchData
| Function
| Exposes the current page when this method is clicked. |