UI Library

ConfirmDialog

result: idle

Prop Type Default Value Notes
accent'cyan' | 'emerald' | 'amber' | 'violet' | 'rose''rose'
Confirm button accent.
buttonSize'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Confirm button scale; numbers are icon-scale pixels interpolated between the steps.
classNamestring?''
Extra classes for the dialog panel.
closeLabelstring?locale
Accessible name for the dismiss affordances.
confirmLabelstring—
Confirm button text.
confirmOnDismissbooleanfalse
Routes Escape, overlay click, and the close icon to onConfirm instead of onCancel.
heightVariant'auto' | 'xs' | … | '7xl''auto'
Panel height step; auto hugs the content.
messagestring—
Body copy explaining the action.
pendingbooleanfalse
Disables dismissal and marks the confirm button pending.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl'—
Shorthand setting both panel width and height; an explicit variant wins.
titlestring—
Dialog heading.
widthVariant'xs' | … | '7xl' | 'fit' | 'wide''md'
Panel width variant.
onCancel() => voidonConfirm—Dismiss handler; falls back to onConfirm when omitted.
onConfirm() => void——Confirm handler.