Snackbar
Snackbar presents transient status updates with optional action and dismiss affordances built from the same button primitives as the library.
Props
| Name | Description | Default | Control |
|---|---|---|---|
actionLabelOptional | Label for the optional action button. string | undefined | undefined | |
actionDisabledOptional | Whether the action button is disabled. boolean | undefined | false | |
actionAutofocusOptional | Whether the action button should autofocus when rendered. boolean | undefined | false | |
actionOnNewLineOptional | Whether the action should be placed on a separate line. boolean | undefined | false | |
dismissibleOptional | Whether to show a dismiss button. boolean | undefined | false | |
dismissButtonLabelOptional | Accessible label for the dismiss button. string | undefined | "Dismiss notification" |
Events
| Name | Type | Description |
|---|---|---|
action | [] | - |
dismiss | [] | - |
Slots
| Name | Parameters | Description |
|---|---|---|
default | - | Supporting text content for the snackbar. |
action | - | Optional custom action content. |
dismiss | - | Optional custom dismiss content. |
Default
Options
Combinations
Single-line
Single-line with action
Two lines
Two lines with longer action