hoppscotch / ui

https://ui.hoppscotch.io
https://ui.hoppscotch.io
20 stars 10 forks source link

Solving issue #17 feat: add pagination component #27

Open The-x-35 opened 1 month ago

The-x-35 commented 1 month ago

Solved issue #17 . Added pagination. I added Next/Previous Buttons to provide buttons to navigate to the next and previous page of data. Also added the page numbers and highlighted the current page, added a prop to limit items per page. Also taking props for custom forward and backward routes. It shows "..." if the number of pages are more than 10 for better view like its on google search page, I also took reference from the shadcn ui. I have tested the code and it works.