Primitives
Dialog
Accessible modal on Radix, on the overlay surface. Composed of trigger, overlay, content, header and footer parts.
Preview
Installation
Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | Icon | ReactElement | - | In front of the label (DialogLabel). From a server file, pass an element: icon={<RobotIcon />} |
| open | boolean | - | Controlled open state |
| onOpenChange | (open: boolean) => void | - | Callback when open state changes |
| modal | boolean | true | Whether to block interactions behind overlay |