-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Customize valueLabel in SliderUnstyled with tailwind #35398
Comments
@ZeeshanTamboli, I added the prop I see that the component is adding the class
But I'm not sure if it is expected to do it like that. I couldn't find anything in the documentation about handling the |
@cjoecker So you want the thumb value component to be created and deleted when the thumb is hovered/unhovered? What is your use case? |
@ZeeshanTamboli I just want to know how is it expected that the Here you can see what I mean: |
@cjoecker Yup, there is nothing in the SliderUnstyled documentation that shows how the There is a lack of documentation and we should show a demo about it. This demo shows it incorrectly. There are no styles applied there by targeting |
Duplicates
Related page
https://mui.com/base/guides/working-with-tailwind-css/#create-the-slider-component
Kind of issue
Missing information
Issue description
I was looking for a way to customize the
valueLabel
inSliderUnstyled
. As described in the documentation, I added it as follows:I want that when I'm hovering the thumb, the
valueLabel
is shown. I see that the component is adding the class.MuiSlider-valueLabelOpen
to thevalueLabel
component. But it is not really creating and deleting the component.I could do the following to show and hide the label:
But I'm not sure if it is expected to do it like that. I couldn't find anything in the documentation about handling the
open
andclose
behavior of sub-components.How should I do it? Would it make sense to add more documentation about it?
Context 🔦
I want that only when I'm hovering the thumb of the
SliderUnstyled
, thevalueLabel
is shown.The text was updated successfully, but these errors were encountered: