Default Light
MgLibrary
Overview
Installation
Buttons
Cards
Charts
Codes
Data Grids
Dropdowns
Editors
Headers & Animations
Icons
Indicators
Inputs
Lists
Modals
Menus
Panels
Pills & Chips
Scheduling
Tabs
Time Line
Trees
Customization

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().

Confirm Deletion
Are you sure you want to delete this? This action cannot be undone.
An unhandled error has occurred. Reload 🗙