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

ParameterDefaultType
Animatedtruebool

Enables the transitions supplied by the CSS provider. Set to false for immediate changes.
AnimationDurationnullint?

Overrides the provider's animation duration, in milliseconds. Null preserves the provider's default. Zero or a negative value disables transitions.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this Alert.
ColorDefaultColor

Specifies the contextual or explicit CSS color of the alert.
Dismisablefalsebool

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.
IntentnullIntent

Specifies the alert intent.
Visiblefalsebool

Sets the alert visibility.

Events

EventType
VisibleChangedEventCallback<bool>

Notifies when the alert visibility state changes. This notification does not wait for the entrance or exit animation to finish.

Methods

MethodReturnParameters
HideTask—

Conceals the alert from the user.
ShowTask—

Displays the alert to the user.
ToggleTask—

Toggles the visibility of the alert.
On this page