Stylish Delete Confirm Dialog
A confirmation dialog for destructive delete operations.
Displays a title, an explanatory message, and a confirm/cancel button pair inside a StylishDialogSurface. Always interpose this dialog before performing an irreversible action so the user can back out. Composes the StylishDialogSurface atom for the modal container and the StylishDialogActions organism for the button row.
Parameters
Heading text shown at the top of the dialog, e.g. "Delete record".
Modifier applied to the StylishDialogSurface's root card.
Body text explaining the consequence of confirming, rendered in messageColor.
Text for the destructive-action button, e.g. "Delete".
Text for the dismiss button, e.g. "Cancel".
Callback invoked when the user taps the confirm button. The caller is responsible for performing the deletion and dismissing the dialog.
Callback invoked when the user taps cancel or taps outside the dialog. The caller should dismiss the dialog.
Maximum lines for title. Defaults to Int.MAX_VALUE (unlimited).
TextOverflow strategy for title. Defaults to TextOverflow.Ellipsis.
Maximum lines for message. Defaults to Int.MAX_VALUE (unlimited).
TextOverflow strategy for message. Defaults to TextOverflow.Ellipsis.
Color for message. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Optional ButtonColors for the cancel button, forwarded to StylishDialogActions. When null (the default), the subdued StylishDialogActions defaults are used.
Optional ButtonColors for the confirm button, forwarded to StylishDialogActions. When null (the default), the prominent StylishDialogActions defaults are used.
Whether the confirm button is interactive. Defaults to true. Set to false to block confirmation until preconditions are met.
Whether the cancel button is interactive. Defaults to true.
When true (the default), the dialog plays the scale-and-fade entrance animation of StylishDialogSurface. When false, the dialog appears immediately.
DialogProperties forwarded to StylishDialogSurface, e.g. to disable dismissal on back press or on tapping outside. Defaults to DialogProperties with usePlatformDefaultWidth = false.