MudBlazor

MudAlert API

Pages

Properties

Name Type Default Description
ChildContent
RenderFragment

null

Child content of the component.
CloseIcon
String
Define the icon used for the close button.
ContentAlignment
HorizontalAlignment

HorizontalAlignment.Left

Sets the position of the text to the start (Left in LTR and right in RTL).
Dense
Boolean

False

If true, compact padding will be used.
Elevation
Int32

0

The higher the number, the heavier the drop-shadow. 0 for no shadow.
Icon
String

null

Custom icon, leave unset to use the standard icon which depends on the Severity
NoIcon
Boolean

False

If true, no alert icon will be used.
Severity
Severity

Severity.Normal

The severity of the alert. This defines the color and icon used.
ShowCloseIcon
Boolean

False

Sets if the alert shows a close icon.
Square
Boolean

False

If true, rounded corners are disabled.
Variant
Variant

Variant.Text

The variant to use.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

EventCallbacks

Name Type Description
CloseIconClicked
EventCallback<MudAlert>
The callback, when the close button has been clicked.
OnClick
EventCallback<MouseEventArgs>
Raised when the alert is clicked
An error has occurred. This application may no longer respond until reloaded. Reload 🗙