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

How to Identify minimum and maximum thumb component #388

Open
Ukashyap-77 opened this issue Feb 16, 2023 · 3 comments
Open

How to Identify minimum and maximum thumb component #388

Ukashyap-77 opened this issue Feb 16, 2023 · 3 comments

Comments

@Ukashyap-77
Copy link

Ukashyap-77 commented Feb 16, 2023

I am really excited about this package, looks great!

However, when we use renderThumbComponent, the custom thumb needs any kind of identifier, if it's the minimum side thumb or the maximum side thumb, will be useful when we try to have separate custom styles for each thumb.

Applicable only in case of 2 thumb range slider

@jonsherrard
Copy link

Echoing same sentiment, the above and below components are passed an index, and the value of the slider, it would be great to have those props passed into the simple "Render thumb" component as well.

In general: A note of documentation on how to use 2 thumb range sliders would be useful too. I managed to get it working with the SliderContainer code in the examples folder, but it took me a while to find and I still don't understand it 😂

@jonsherrard
Copy link

jonsherrard commented Feb 27, 2023

Oh I see the renderThumbComponent gets the index now: 6eeda18

As of 3 days ago! haha - I will try updating and see if it works.

Update: It doesn't seem to be in v2.3.0 - If it's possible for the next release - could renderThumbComponent also receive the current value of that slider?

@KiwiKilian
Copy link
Contributor

It was successfully published with 2.3.1.

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

3 participants