A snackbar component is used to provide feedback about an operation by showing a brief message at the bottom of the screen.

Slots
default — Default slot to render the snackbar content.
action — Renders the action part of the snackbar. Usually an interactive element (button)
CSS Parts
base — The base wrapper of the snackbar component.
message — The snackbar message.
action — The default snackbar action button.
action-container — The area holding the actions.

The snackbar action button.

actionText: string

Emitted when the snackbar action button is clicked.

onAction(args: CustomEvent<void>): void

Parameters

Returns void