Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving issue #17 feat: add pagination component #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

The-x-35
Copy link

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.

@anwarulislam anwarulislam self-requested a review August 12, 2024 05:54
Copy link
Member

@anwarulislam anwarulislam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Add support to hide next/prev button
  2. Add go to last/first page button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants