Replies: 3 comments 2 replies
-
I second this. Would be really helpful, especially when dynamically creating components where tracking their state could be a bit harder. Assuming the maintainers are OK, I'd be able to contribute this feature to some of the components. |
Beta Was this translation helpful? Give feedback.
-
I'm also experiencing this issue when I use dropdown menu, I don't know how to get the state, however I see that Accordion does expose the state through the slot. |
Beta Was this translation helpful? Give feedback.
-
This would be really beneficial when working with Combobox as well. Right now, there's no way to know if there are any results matching the query, other than having to provide the filtered options myself. I see that the Ideally, this state would be exposed as slot props in various components like |
Beta Was this translation helpful? Give feedback.
-
Is it possible to expose the open state of some components via slot?
Like they have in headlessui/vue. An example would be for the AccordionTrigger component. in addition to the open/closed state being updated via a data attribute, I think it would be nice if we were able to do something like this
This way we can take the open value and do stuff with it like hide an element or rotate the icon
Beta Was this translation helpful? Give feedback.
All reactions