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 | Default | Type |
|---|---|---|
AnimationDuration | 0 | double |
Specifies the base animation duration in milliseconds. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this Snackbar. | ||
Color | Default | SnackbarColor |
Specifies the snackbar color. Possible values: DefaultPrimarySecondarySuccessDangerWarningInfoLightDark | ||
DelayCloseOnClick | false | bool |
If clicked on snackbar, a close action will be delayed by increasing the Interval time. | ||
DelayCloseOnClickInterval | Interval | double? |
Specifies the interval (in milliseconds) by which the snackbar will be delayed from closing. When omitted, uses Interval. | ||
Interval | 0 | double |
Specifies the interval (in milliseconds) after which the snackbar will be automatically closed. | ||
Key | — | string |
Unique key associated by this snackbar. | ||
Location | SnackbarLocation.Default | SnackbarLocation |
Specifies the snackbar location. Possible values: DefaultBottomBottomStartBottomEndTopTopStartTopEnd | ||
Multiline | false | bool |
Allow snackbar to show multiple lines of text. | ||
Visible | false | bool |
Specifies the visibility of snackbar. | ||
Events
| Event | Type |
|---|---|
Closed | EventCallback<SnackbarClosedEventArgs> |
Occurs after the snackbar has closed. | |
Methods
| Method | Return | Parameters |
|---|---|---|
Hide | Task | — |
Hides the snackbar.
| ||
Show | Task | — |
Shows the snackbar.
| ||