Blazorise Toast API

Explore the Blazorise Toast API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Toast documentation.

API

Parameters

Toaster

ParameterDefaultType
ChildContentnullRenderFragment

The content to be rendered inside the Toaster component.
PlacementBottomEndToasterPlacement

Specifies the position of the Toaster component.
Possible values:TopTopStartTopEndBottomBottomStartBottomEnd
PlacementStrategyFixedToasterPlacementStrategy

Specifies the placement strategy of the Toaster component.
Possible values:FixedAbsolute

Toast

ParameterDefaultType
Animatedtruebool

Specifies whether the Toast should have an animated transition.
AnimationDuration300int

The duration of the animation in milliseconds.
Autohidetruebool

Automatically hide the toast after the delay.
AutohideDelay5000double

Delay in milliseconds before hiding the toast.
ChildContentnullRenderFragment

The content to be rendered inside the Toast.
Visiblefalsebool

Specifies the visibility state of the Toast.

Events

Toast

EventType
ClosedEventCallback

Event callback for when the Toast has been closed.
ClosingFunc<ToastClosingEventArgs, Task>

Callback for handling the closing of the Toast.
OpenedEventCallback

Event callback for when the Toast has been opened.
OpeningFunc<ToastOpeningEventArgs, Task>

Callback for handling the opening of the Toast.
VisibleChangedEventCallback<bool>

Event callback for when the visibility state of the Toast changes.

Methods

Toast

MethodReturnParameters
CloseTaskCloseReason closeReason

Closes the toast with reason of closing.
HideTask—

Fires the toast dialog closure process.
ShowTask—

Starts the toast opening process.
On this page