# Dialog

For blocking decisions only. Focus is trapped and Escape closes.

Import from `@a31labs/rax/dialog`.

## Usage

```tsx
<Dialog open={open} onOpenChange={setOpen} title="Rename project" footer={<Button variant="primary">Save</Button>}>
  <Field label="Project name"><Input /></Field>
</Dialog>
```

## Rules

Props: `open`, `onOpenChange`, `title`, `description`, children, `footer`, `modal` (default true), `container`; `className` and `ref` go to the dialog box. Only for irreversible or blocking decisions. Floating shadow, scrim, focus trapped, Escape closes. The dialog never grows taller than the viewport minus 32px; the body scrolls instead.

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