Homecomponentsfeedback
Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.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