react-ellipsis-pagination

1.1.5 • Public • Published

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 :


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@1.1.5

Version

1.1.5

License

ISC

Unpacked Size

9.98 kB

Total Files

9

Last publish

Collaborators

  • himanshu12cs20