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

Parameter Description TypeDefault
ChildContent

The content to be rendered inside the Toaster component.

RenderFragmentnull
Placement

Specifies the position of the Toaster component.

Possible values:Top, TopStart, TopEnd, Bottom, BottomStart, BottomEnd

ToasterPlacementToasterPlacement.BottomEnd
PlacementStrategy

Specifies the placement strategy of the Toaster component.

Possible values:Fixed, Absolute

ToasterPlacementStrategyToasterPlacementStrategy.Fixed

Toast

Parameter Description TypeDefault
Animated

Specifies whether the Toast should have an animated transition.

booltrue
AnimationDuration

The duration of the animation in milliseconds.

int300
Autohide

Automatically hide the toast after the delay.

booltrue
AutohideDelay

Delay in milliseconds before hiding the toast.

double5000
ChildContent

The content to be rendered inside the Toast.

RenderFragmentnull
Visible

Specifies the visibility state of the Toast.

boolfalse

Events

Toast

Event Description Type
Closed

Event callback for when the Toast has been closed.

EventCallback
Closing

Callback for handling the closing of the Toast.

Func<ToastClosingEventArgs, Task>
Opened

Event callback for when the Toast has been opened.

EventCallback
Opening

Callback for handling the opening of the Toast.

Func<ToastOpeningEventArgs, Task>
VisibleChanged

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

EventCallback<bool>

Methods

Toast

Method DescriptionReturnParameters
Close Closes the toast with reason of closing. TaskCloseReason closeReason
Hide Fires the toast dialog closure process. Task
Show Starts the toast opening process. Task
On this page