ConsenSysMesh / ConsenSysMesh/rimble-ui

Ability to pass in event handlers to Slider component

Open
#452 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
455
Forks
60
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.