Giter Club home page Giter Club logo

react-responsive-pagination's People

Contributors

jonelantha avatar reedws avatar runarsae avatar semantic-release-bot avatar skophek avatar thehappycoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-responsive-pagination's Issues

UseLayoutEffect Warning

Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.
at BootstrapPagination

I hope it can be solved, it is a very good library!

markup for active page link

hi, v1.8.1
why automatically hide label/number of the active page (actually setting aria-hidden attribute)? how does user get notification about current page number?

<a class="page-link" href="#" aria-label="(current)"><span aria-hidden="true">1</span><span class="sr-only">(current)</span></a>

is there a way how to turn this behavior off? setting ariaCurrentAttr prop should be sufficient

Reverse Pagination Ability

Hi there - First of all, great pagination component! It's been a great help and the documentation is amazing!

I had a question on how I might go about modifying the pagination so it's reversed.

Instead of...
< 1 2 3 4 .... 10 >

It would go
< 10 9 8 7 ....1 >

My use case is to follow logic like a book. The oldest writing and material is on page 1, and will always be on page 1. The newer material is on Page 10, etc. In the current system, the new content is always on page 1, while the old content gets put into the larger pages numbers and I lose track of their location.

What's your best suggestion to achieve this behavior?

The automated release is failing 🚨

🚨 The automated release from the beta branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the beta branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two Factor Authentication for your account, set its level to "Authorization only" in your account settings. semantic-release cannot publish with the default "
Authorization and writes" level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

This library is awesome

Just wanted to say this, I was having a problem trying to implement a pagination without having the mess of using a component library only for that, and this definitely solved my problem. Thanks !!

option to not render next/prev buttons

hi, any plans for prop to remove next/prev btns?
if i hide them using CSS, JS won't calculate correct width because the plugin works the way it renders all different buttons first (single digit page btn as first child) and as first and last are hidden to achieve desired looks, btn fitting this condition has width of 0

Label as component.

Hi. Is it possible add ability for adding in label any components for customizing it. Currently I added it, but TS highlight an error and pagination buttons have broken styles with paddings because images have display:block

<ResponsivePagination
current={currentPage || 0}
total={totalPages}
onPageChange={onChangePage}
className="flex justify-end bg-white rounded-[10px]"
pageLinkClassName=' py-2 px-4 font-semibold'
pageItemClassName='border border-r-0 border-[#E9EEF3] py-2 mr-[-1px] text-[#1573FF]'
activeItemClassName='relative border-r-[1px] border-[#1573FF] bg-[#1573FF] text-white z-10'
previousClassName='rounded-l-[10px] font-semibold border-[#E9EEF3]'
nextClassName='rounded-r-[10px] font-medium border-r-[1px] border-[#E9EEF3]'
//@ts-ignore
previousLabel={}
//@ts-ignore
nextLabel={}
/>

With display:block
Снимок экрана 2023-12-01 в 14 47 37

without display:block
Снимок экрана 2023-12-01 в 14 47 25

Does not work with the newest version of React (v18.0)

I was going to test this library so I created a new react project with npx create react app (which is currently installing the latest version of React), but when I tried to install the react-responsive-pagination library it said it has the older react version dependency. Do you plan to make your library compatible with React v18.0 ?

The automated release is failing 🚨

🚨 The automated release from the beta branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the beta branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


No npm token specified.

An npm token must be created and set in the NPM_TOKEN environment variable on your CI environment.

Please make sure to create an npm token and to set it in the NPM_TOKEN environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/.


Good luck with your project ✨

Your semantic-release bot 📦🚀

wrong buttons for next/previous page

The buttons presented for next and previous page are actually meant for first/last page. It would be nice to render both :)

Also (separate issue, really), the ellipsis should be clickable.

Responsivity breaks with large page numbers

In the possibility that we need to paginate millions of items, the component does not seem to handle well large page numbers. (it's breaking on mobile sized screens). Perhaps you could remove the ellipsis and the first and last page buttons when there is no space left.

01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.