# Drawer

A sheet from the left or right edge. Focus is trapped.

Import from `@a31labs/rax/drawer`.

## Usage

```tsx
<Drawer open={open} onOpenChange={setOpen} side="left" title="Menu">…</Drawer>
```

## Rules

Props: `open`, `onOpenChange`, `title`, `description`, children, `footer`, `side` (`left` | `right` default), `container`; `className` and `ref` go to the sheet. A full-height sheet from a screen edge, width min(400px, 100vw − 32px), floating shadow, `line` border on its inner edge. Head with title, description and a ghost close IconButton; the body scrolls; the footer is right-aligned. Scrim, focus trapped, Escape closes, a swipe toward the edge dismisses. Slides in via transform, opacity only under reduced motion; toasts stay clickable as with Dialog. For mobile navigation and side forms, not for blocking decisions (use Dialog).

Page: https://rax.a31.at/components/drawer
