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

ParameterDefaultType
AnimationDuration0double

Specifies the base animation duration in milliseconds.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this Snackbar.
ColorDefaultSnackbarColor

Specifies the snackbar color.
Possible values:DefaultPrimarySecondarySuccessDangerWarningInfoLightDark
DelayCloseOnClickfalsebool

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

Specifies the interval (in milliseconds) by which the snackbar will be delayed from closing.
When omitted, uses Interval.
Interval0double

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

Unique key associated by this snackbar.
LocationSnackbarLocation.DefaultSnackbarLocation

Specifies the snackbar location.
Possible values:DefaultBottomBottomStartBottomEndTopTopStartTopEnd
Multilinefalsebool

Allow snackbar to show multiple lines of text.
Visiblefalsebool

Specifies the visibility of snackbar.

Events

EventType
ClosedEventCallback<SnackbarClosedEventArgs>

Occurs after the snackbar has closed.

Methods

MethodReturnParameters
HideTask—

Hides the snackbar.
ShowTask—

Shows the snackbar.
On this page