- Components
- Overlays
Drawer
Swipe-to-dismiss panel on Base UI Drawer (no vaul). Drag it toward its edge to close.
Installation#
npx shadcn add @ortaui/drawerExamples#
Directions#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| direction | "bottom" | "top" | "left" | "right" | "bottom" | Drawer: the edge it slides from; sets the swipe direction. |
| handle | boolean | - | DrawerContent: grab handle. Defaults to on for bottom. |
| className | string | - | Merged with the component classes via cn(). |