Homecomponentsfeedback
Toast
Show a global and temporary feedback in response to a user action.
Use Toast to display a global and temporary message with optional icons and actions.
Long Text
The Toast is limited in width so that the text wraps after certain size.
Icons
Set the showIcon property to show an icon corresponding to the given tone.
Action
Use the action property to add an action that can be performed. Generally, this is to provide an "Undo" action.
API
show
Required
true
false
onHide
Required
() => void
tone
Required
success
warning
informational
critical
children
Required
ReactNode
showIcon
true
false
action
{ label: string; onClick: () => void; }
data
DataAttributeMap