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 | Default | Type |
|---|---|---|
Animated | true | bool |
Enables the transitions supplied by the CSS provider. Set to false for immediate changes. | ||
AnimationDuration | null | int? |
Overrides the provider's animation duration, in milliseconds. Null preserves the provider's default. Zero or a negative value disables transitions. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this Alert. | ||
Color | Default | Color |
Specifies the contextual or explicit CSS color of the alert. | ||
Dismisable | false | bool |
Controls the padding and positioning for close buttons. When omitted, dismissible styling is enabled automatically when a CloseButton is present. An explicit value overrides this automatic behavior. | ||
Intent | null | Intent |
Specifies the alert intent. | ||
Visible | false | bool |
Sets the alert visibility. | ||
Events
| Event | Type |
|---|---|
VisibleChanged | EventCallback<bool> |
Notifies when the alert visibility state changes. This notification does not wait for the entrance or exit animation to finish. | |
Methods
| Method | Return | Parameters |
|---|---|---|
Hide | Task | — |
Conceals the alert from the user.
| ||
Show | Task | — |
Displays the alert to the user.
| ||
Toggle | Task | — |
Toggles the visibility of the alert.
| ||