Blazorise Alert API
Explore the Blazorise Alert API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Alert documentation.
API
Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this Alert. |
RenderFragment | null |
Color |
Specifies the alert color. |
Color | null |
Dismisable |
Enables the alert to be closed by placing the padding for close button. |
bool | false |
Intent |
Specifies the alert intent. |
Intent | null |
Visible |
Sets the alert visibility. |
bool | false |
Events
| Event | Description | Type |
|---|---|---|
VisibleChanged |
Notifies when the alert visibility state changes. |
EventCallback<bool> |
Methods
| Method | Description | Return | Parameters |
|---|---|---|---|
Hide |
Conceals the alert from the user. | Task | |
Show |
Displays the alert to the user. | Task | |
Toggle |
Toggles the visibility of the alert. | Task |