[bug]: Using Drawer with snap points
Author: hadnetCreated Mar 8, 2025Updated Sep 16, 2026
Labelsbugstale?
Describe the bug
The Drawer component has a bug when trying to use it with the snapPoints, activeSnapPoint, and setActiveSnapPoint props. The Drawer isn’t visible, it doesn’t show up, even though it’s in the DOM. But when using the Drawer through the Vaul package, it works perfectly. I think it's something related to DrawerContent component.
Affected component/components
Drawer
How to reproduce
<Drawer
modal={false}
snapPoints={snapPoints}
activeSnapPoint={snap}
setActiveSnapPoint={setSnap}
>
Codesandbox/StackBlitz link
No response
Logs
System Info
Mac OS
Chrome
Shadcn/ui 0.0.4
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Source: shadcn-ui/ui