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

Add a export for usePaginationContext #382

Open
welpie21 opened this issue Apr 9, 2024 · 0 comments
Open

Add a export for usePaginationContext #382

welpie21 opened this issue Apr 9, 2024 · 0 comments

Comments

@welpie21
Copy link

welpie21 commented Apr 9, 2024

Is your feature request related to a problem? Please describe.
I'm making a implementation of the pagination component and want to style it. But since I want to re-use a existing component called Button. I have no way to control the behaviour of the button for example when it's active or not.

Describe the solution you'd like
Exporting the usePaginationContext will give me the needed properties to match what active is or not. And if the current page on the item is active I can set the property ( which is custom ) to something.

Describe alternatives you've considered
Since the're no other properties exposed I have not found an alertnative solution to my problem.

Additional context
the Button has a variant prop with the values light, filled, outlined, etc. When a button is active the variant should be filled instead of light. Since there is no property I can grab to match against something, that this is kind of a dead end for me.

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

No branches or pull requests

1 participant