Components API

LumexAlert

API reference documentation for the LumexAlert component. Explore details about its parameters, types and other APIs.

Demos

Properties

Parameter Type Description Default
ChildContent RenderFragment Gets or sets the content to render inside the alert. -
TitleContent RenderFragment Gets or sets the content to render as the alert title. -
DescriptionContent RenderFragment Gets or sets the content to render as the alert description. -
StartContent RenderFragment Gets or sets the content to render at the start of the alert. -
EndContent RenderFragment Gets or sets the content to render at the end of the alert. -
IconContent RenderFragment Gets or sets the content to render as the alert icon. -
Title string Gets or sets the title of the alert. -
Description string Gets or sets the description of the alert. -
Radius Radius Gets or sets the border radius of the alert. Medium
Color ThemeColor Gets or sets the color of the alert. Default
Variant AlertVariant Gets or sets the visual variant of the alert. Flat
HideIcon bool Gets or sets a value indicating whether the icon is hidden. false
Closeable bool Gets or sets a value indicating whether the alert can be closed. false
Visible bool Gets or sets a value indicating whether the alert is visible. true
VisibleChanged EventCallback<bool> Gets or sets the callback invoked when the property changes. -
OnClose EventCallback<MouseEventArgs> Gets or sets the callback invoked when the alert is closed. -
Classes AlertSlots Gets or sets the CSS class names for the alert slots. -
As string Gets or sets an HTML tag of the component. -
Class string Gets or sets CSS class names that will be applied to the component. -
Style string Gets or sets styles that will be applied to the component. -
AdditionalAttributes IReadOnlyDictionary<string, object> Gets or sets a collection of additional attributes that will be applied to the component. -
ElementReference ElementReference? Gets or sets the associated . May be if accessed before the component is rendered. -
An unhandled error has occurred. Reload 🗙