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