- Components
- Overlays
Dialog
Centered panel on Base UI Dialog. The backdrop fades over 200ms and the content rises 10px and scales in over 300ms, out over 200ms.
Installation#
npx shadcn add @ortaui/dialogExamples#
Default#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| showClose | boolean | true | DialogContent: the corner close button. |
| render | ReactElement | - | On triggers and DialogClose: render as a Button. |
| className | string | - | Merged with the component classes via cn(). |