Replies: 2 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.
2 replies
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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