API documentation.

Check out the Examples for this component.


Name Type Default Description
Elevation Int32 0 The higher the number, the heavier the drop-shadow. 0 for no shadow.
Square Boolean False If true, rounded corners are disabled.
Dense Boolean False If true, compact padding will be used.
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.
Variant Variant Variant.Text The variant to use.
ChildContent RenderFragment null Child content of the component.
Icon String null Custom icon, leave unset to use the standard icon which depends on the Severity
OnClick EventCallback<MouseEventArgs> Raised when the alert is clicked
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.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙