Usage
Title
and TitleContent
are provided, TitleContent
takes precedence.
Radius
Use Radius
parameter to control the border radius of the alert.
Colors
Use Color
parameter to set the color of the alert.
Variants
Use Variant
parameter to change the visual style of the alert.
Custom Icon
By default, the alert displays an appropriate icon based on the Color
parameter.
Use Icon
parameter to replace the default icon with a custom one.
Hide Icon
Use HideIcon
parameter to hide the icon entirely.
Closeable
Use Closeable
or OnClose
parameters to add a close button to dismiss the alert.
End Content
Use EndContent
parameter to add additional content at the end of the alert, such as actions.
Two-way Data Binding
Use @bind-Visible
directive or Visible
and VisibleChanged
parameters to manually control alert visibility.
Custom Styles
Alert
Class
: The CSS class names to style the alert wrapper.Classes
: The CSS class names to style the alert slots.
API
See the API references below for a complete guide to all the parameters available for the components mentioned here.