Closed cipriancaba closed 4 months ago
Yes, you can use the open prop on the Root.
https://github.com/emilkowalski/vaul?tab=readme-ov-file#root
Can be controlled with the value and onOpenChange props. Can be opened by default via the open prop.
That means that the only supported use case would be the fully controlled version, if I understand correctly?
Yeah something like this probably works best - https://www.radix-ui.com/primitives/docs/components/dialog#close-after-asynchronous-form-submission
Thanks for your help @kevinmitch14
This is needed for example after a server action runs, and needs to close the interaction that happened in the drawer