UI Library

FormDialog

Prop Type Default Value Notes
actionsSnippet—
Extra footer buttons before OK; one outline Button line, committing applies it.
footerSnippet—
Replaces the built-in save/reset row; one submit Button line, committing applies it.
childrenSnippet—
Form body; TextInput lines and HTML elements, committing applies it.
closeLabelstring—
Accessible name for dismissals.
confirmOnDismissbooleanfalse
Makes the discard confirm’s dismissal perform the discard; off returns to the form.
dirtybooleanfalse
Gates the discard prompt and Reset.
discardLabelstring—
Discard-confirm button text.
discardMessagestring—
Discard-confirm body.
discardTitlestring—
Discard-confirm title.
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.
pendingbooleanfalse
Disables Save/Reset while an operation runs.
resetLabelstring?—
Reset button text; omit it to hide the button.
saveDisabledbooleanfalse
Caller validity rules; ORed with pending.
saveLabelstring—
Save button text.
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.
onClose() => void——Final close (direct when clean, after discard confirm).
onReset() => void——Reset handler.
onSave() => void——Save handler.