SnackbarContent API

API reference docs for theSnackbarContentcomponent. For examples and details on the usage of this component, visit the component demo page.

Props

Props

Type

Description

Default

title

string

Displays the label/title

_

description?

string

Displays the description

_

variant?

'info' | 'positive' | 'critical' | 'loading'

Represents the variants of the component

_

actionButton?

object

To prompt users to take specific actions

_

actionButton.text

string

Represents the text for the action button

_

actionButton.onClick

function

Callback invoked when the action button is clicked

_

onCloseButtonClick?

function

Callback invoked when the close button is clicked

_