MudAlert API

Pages
Properties
Name Type Default Description
Behavior
ChildContent
RenderFragment
null Child content of the component.
Severity
Severity
Severity.Normal The severity of the alert. This defines the color and icon used.
ShowCloseIcon
bool
False Sets if the alert shows a close icon.
Appearance
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
bool
False If true, compact padding will be used.
Elevation
int
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
bool
False If true, no alert icon will be used.
Square
bool
False If true, rounded corners are disabled.
Variant
Variant
Variant.Text The variant to use.
Common
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

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.3

An unhandled error has occurred. Reload 🗙