Replies: 3 comments
-
We have the same problem. We can*t wrap the the switch with a group, since the label is provided by another component. |
Beta Was this translation helpful? Give feedback.
-
Hello, In order to enhancement accessibility I'd like to provide an attribute But I cannot do it because:
Any solution ? Thank you |
Beta Was this translation helpful? Give feedback.
-
Same issue here with An optional |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently for
<Switch>
components (React) an id is auto-generated.https://github.com/tailwindlabs/headlessui/blob/main/packages/%40headlessui-react/src/components/switch/switch.tsx#L114
Would it be possible to optionally allow an id to be passed? This way I could link the Switch with labels in a form.
Could work on a fix in a PR unless there are objections. Let me know!
Beta Was this translation helpful? Give feedback.
All reactions