Confirm Dialog
A specialized modal for critical actions that require user confirmation.
Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.
API Reference
MgConfirmDialog
| Property | Type | Default | Description |
|---|---|---|---|
| DisplayText | string | "" | Message shown in the confirm body. |
| HeaderText | string | "" | Header title displayed at the top of the dialog. |
| IconName | string | null | Optional icon rendered beside the message. |
| IconClasses | string | "" | Extra classes applied to the icon. |
| CancelButtonText | string | "Cancel" | Label for the cancel button. |
| OkButtonText | string | "OK" | Label for the confirm button. |
| HeaderClasses | string | "" | Extra classes for the header container. |
| FooterClasses | string | "" | Extra classes for the footer wrapper. |
| FooterButtonClasses | string | "" | Shared classes applied to the action buttons. |
| DialogResult | EventCallback<MgEnums.MgDialogResult> | - | Invoked when the dialog is closed. |
Use @ref to call OpenDialog().