Components
GlassDrawer
A bottom-sheet style drawer that slides in from the edge of the screen.
Preview
Usage
Props
GlassDrawer
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Controlled open state |
defaultOpen | boolean | false | Default open state |
onOpenChange | (open: boolean) => void | — | Fired when the open state changes |
shouldScaleBackground | boolean | true | Scale the page behind the drawer |
direction | "top" | "bottom" | "left" | "right" | "bottom" | Side the drawer opens from |
dismissible | boolean | true | Allow dismissing by dragging or clicking overlay |
All vaul Drawer props are also supported.