react-ellipsis-pagination

1.3.6 • Public • Published

Working on the issues and will be fixing very soon...

for any query connect at himanshusonkar84@gmail.com

React Ellipsis Pagination || React Pagination || React Custom Pagination

This is a custom Pagination basically Ellipsis type of Pagination, It can be used as component by including following lines of code :

pagination

pagination


const [page, setPage] = useState(1);
const [pageItems, setPageItems] = useState(20);
const [totalRecords, setTotalRecords] = useState(100);

<CustomEllipsisPagination handler={(page)=> setPage(page)} pageCount={Math.ceil(totalRecords / pageItems)} />


In the above code we have used our custom react ellipsis pagination component.

  1. page : page maintain the page Number.
  2. pageItems : pageItems are the number of items per page.
  3. totalRecords : totalRecords are number of records that has to be manage in this react ellipsis pagination.

Package Sidebar

Install

npm i react-ellipsis-pagination

Weekly Downloads

2

Version

1.3.6

License

MIT

Unpacked Size

94.1 kB

Total Files

10

Last publish

Collaborators

  • himanshu12cs20