How to add a tooltip to Switch #30564
-
What's the best way to add a switch with a tooltip for the label? The switch component's label only takes in a string, vs an element to add in a label. I wonder if wrapping the switch with InfoLabel will cause accessibility issues since the switch is an interactive element. That is the approach I've taken now. Any suggestions? I was thinking perhaps customizing with slots, but not entire sure how to do this. |
Beta Was this translation helpful? Give feedback.
Answered by
pradeept95
Feb 18, 2024
Replies: 1 comment
-
Hi @15MariamS
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
15MariamS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @15MariamS
You can use
Tooltip
component to achieve this. Following is an example that might help you.