Layout
Drawer
A slide-in panel from any edge of the viewport with configurable size.
Preview:1280px
Drawer renders as an overlay — trigger via button in your app.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | false | Controls visibility. |
| onClose | () => void | - | Fired on overlay click or Escape key. |
| side | 'left' | 'right' | 'bottom' | 'right' | Edge from which the drawer slides in. |
| title | string | - | Drawer header title. |
| size | 'sm' | 'md' | 'lg' | 'md' | Controls drawer width (left/right) or height (bottom). |