components/bits/ConfirmDialog#
ConfirmDialog()#
Generic confirmation dialog for destructive or irreversible actions.
Supports an icon, a busy state and translated copy.
Renders through StyledDialog so it matches the app's dialog style.
Parameters#
| Parameter | Type |
|---|---|
props |
ConfirmDialogProps |
Returns#
Element
ConfirmDialogProps#
Properties#
busy?#
Keeps the dialog open with a spinner while the action is in flight.
cancelLabel?#
Defaults to the shared common:buttons.cancel label.
children?#
Extra content between the message and the actions (a checkbox, a list).
confirmLabel#
destructive?#
Renders the confirm action in error colors and tints the icon tile.
extraAction?#
A third choice between Cancel and the confirm action (a milder alternative to it).
label#
onClick#
Returns#
void
icon?#
Pass null to drop the icon tile entirely.
maxWidth?#
xs (the default) for a one-line question, sm when the copy is longer.
message#
onClose#
Returns#
void
onConfirm#
Returns#
void
open#
sx?#
Forwarded to the underlying dialog — layering, mostly.