SnackbarContent API

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

Props

PropsTypeDescriptionDefault
titlestringDisplays the label/title_
description?stringDisplays the description_
variant?'info' | 'positive' | 'critical' | 'loading'Represents the variants of the component_
actionButton?objectTo prompt users to take specific actions_
actionButton.textstringRepresents the text for the action button_
actionButton.onClickfunctionCallback invoked when the action button is clicked_
onCloseButtonClick?functionCallback invoked when the close button is clicked_