Allow for programmatic opening and closing of Disclosures #2968
spencermayne
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.
-
Package: @headlessui/react
Version: v1.7.18
Currently, when using Disclosures, you have the option to provide a default open state with
defaultOpen
or programmatically close it by using theclose()
render prop, but there is no way to toggle or open them.There are a few solutions out there that I would say are less than ideal, and exposing a way to trigger the
ActionTypes.ToggleDisclosure
, or possibly just anopen()
render prop would super useful.Beta Was this translation helpful? Give feedback.
All reactions