UI Library

BaseDialog

Prop Type Default Value Notes
ariaLabelstring?locale
Accessible name used only when neither title nor header labels the dialog.
childrenSnippet—
Dialog body content; committing applies it, and the dialog edits its paragraph, buttons, and their onClick handlers.
classNamestring?''
Extra classes for the dialog panel.
closeLabelstring?locale
Overrides the close accessible name.
dismissDisabledbooleanfalse
Blocks Escape, overlay, and close-icon dismissal while keeping the footer buttons active.
headerSnippet—
Copyable title heading; one Copyable line, committing applies it. The plain title keeps rendering while off.
heightVariant'auto' | 'xs' | … | '7xl''auto'
Panel height step; auto hugs the content.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl'—
Shorthand setting both width and height; an explicit variant wins.
titlestring?—
Dialog heading.
widthVariant'xs' | … | '7xl' | 'fit' | 'wide''md'
Panel width variant.
onCancel() => void——Called by every dismissal affordance.