Add Events to Components API #563
slavarazum
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In some cases we need to share component state to parent component.
Example: When menu is open, we need to change header styles. Menu is a child component of header.
Now we can check open state only inside Menu component template via scoped slot.
Events can solve this problem and give more flexibility to HeadlessUI.
I think this would also be relevant for other components.
Beta Was this translation helpful? Give feedback.
All reactions