emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.27k stars 170 forks source link

Forward the defaultOpen prop #292

Open hdadr opened 3 months ago

hdadr commented 3 months ago

I have a map in the drawer with markers on it. The user can navigate away from the opened drawer with the map when clicked on a location, but when they navigate back i open the drawer for them, but it comes with the drawer open animation which makes it very ugly.

This defaultOpen prop is already there in the radix part, why not passing it down?

hdadr commented 3 months ago

it may not solve my issue. i would like to have an option like: shouldAnimate so we could remove animation in cases when it would make the UX better