Replies: 3 comments 2 replies
-
I want this too. I've got my own |
Beta Was this translation helpful? Give feedback.
-
Yeah this is a humongous across the whole library and needs to be addressed. We should be able to provide our own ids and other props such as aria-labelledBy so we can support the use case of having external labels and associating them with these controls to maintain accessibility. This really hinders flexibility. Even a simple case of wanting a consistent pattern for ids across my app, i dont need headless to force names my ids when I want to define my own. I noticed it with Listbox where I cannot define my own id or pass a aria-labelledBy as my label is outside the component. |
Beta Was this translation helpful? Give feedback.
-
This has been resolved in later versions. I just verified. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I use Headless UI Menu, I cannot set the ID of the button because Headless UI is setting its own.
e.g.
id="menu button"
-->id="headlessui-menu-button-1"
Is there a way I can "force" my own ID?
Beta Was this translation helpful? Give feedback.
All reactions