Blazorise Snackbar API

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

For examples and usage guidance, see the Snackbar documentation.

API

Parameters

Parameter Description TypeDefault
AnimationDuration

Specifies the base animation duration in milliseconds.

double0
ChildContent

Specifies the content to be rendered inside this Snackbar.

RenderFragmentnull
Color

Specifies the snackbar color.

Possible values:Default, Primary, Secondary, Success, Danger, Warning, Info, Light, Dark

SnackbarColorSnackbarColor.Default
DelayCloseOnClick

If clicked on snackbar, a close action will be delayed by increasing the Interval time.

boolfalse
DelayCloseOnClickInterval

Specifies the interval (in milliseconds) by which the snackbar will be delayed from closing.

double?null
Interval

Specifies the interval (in milliseconds) after which the snackbar will be automatically closed.

double0
Key

Unique key associated by this snackbar.

string
Location

Specifies the snackbar location.

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

SnackbarLocationSnackbarLocation.Default
Multiline

Allow snackbar to show multiple lines of text.

boolfalse
Visible

Specifies the visibility of snackbar.

boolfalse

Events

Event Description Type
Closed

Occurs after the snackbar has closed.

EventCallback<SnackbarClosedEventArgs>

Methods

Method DescriptionReturnParameters
Hide Hides the snackbar. Task
Show Shows the snackbar. Task
On this page