Drawer
overlaysSliding panel overlay from left or right edge with backdrop, title, close button, Escape key dismiss, and scroll body. Token-driven width, shadow, animation, and colors.
Import
typescript
import { Drawer } from "packages/ui/src";Props
DrawerProps
| Prop | Type | Required |
|---|---|---|
open | boolean | Yes |
onClose | () => void, title?: string, position?: 'left'|'right', children: ReactNode | Yes |
Examples
Drawer
Sliding panel overlay from left or right edge with backdrop and dismiss.