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

Ability to pass in event handlers to Slider component #452

Open
orbmis opened this issue Aug 12, 2020 · 0 comments
Open

Ability to pass in event handlers to Slider component #452

orbmis opened this issue Aug 12, 2020 · 0 comments

Comments

@orbmis
Copy link

orbmis commented Aug 12, 2020

Is your feature request related to a problem? Please describe.
The slider component doesn't seem to provide a way to respond to it's movements.

Describe the solution you'd like
It would be great to be able to pass in a callback function as a prop to the slider that accepts as a parameter the percentage that the slider has moved fro left to right. This callback would be executed every time the slider moved.

Describe alternatives you've considered
This could be done perhaps using refs and DOM event handlers, but it would be a hack.

Additional context
https://rimble.consensys.design/components/rimble-ui/Slider

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