@blaze-react/pagination
v0.8.0-alpha.112
Published
The Pagination component enables the user to select a specific page from a range of pages.
Keywords
Readme
Description
The Pagination component enables the user to select a specific page from a range of pages.
Usage
- Required
<Pagination
totalItems={100}
currentPage={1}
visiblePages={10}
onPageChange={(page: Number) => {
console.log(page);
}}
/>API
Pagination can receive a number of props as follow:
| NAME | TYPE | DEFAULT | | :----------- | :------: | :----------: | | totalItems | Number | required | | visiblePages | Number | 10 | | onPageChange | Function | (page) => {} | | currentPage | Number | 1 | | itemsPerPage | Number | 10 |
