Dialog
Overlays

Dialog.

Modal dialog with backdrop and keyboard dismissal.

Real interactive component
Live demo

Create workspace

A dialog using native focus handling.

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

6 props
ParameterTypeRequiredDefaultPossible valuesDescription
openbooleanYes—true · falseControlled dialog visibility.
onOpenChange(open: boolean) => voidYes——Notified on dismissal/close.
titlestringYes——Accessible dialog heading.
childrenReactNodeYes——Dialog body content.
descriptionstringNo——Supporting information below title.
footerReactNodeNo——Optional dialog footer actions.