Toast
Toasts are brief user feedback messages that overlay content.
A toast overlay is used to provide system status notifications, such as error, completion, and loading progress messages. The icons and colours are available, which must be selectively used according to the component's attention level.
React
releasedVue
unsupportedElements
releasedAndroid
releasediOS
releasedVariants
Positive
The positive toast uses the green semantic colour and includes a checkmark icon (Success) to support clarity for those with colour vision deficiency. It’s used to indicate a successful action or the completion of a task.
Warning
The warning toast uses the orange semantic colour and features a triangular warning icon (Warning) to aid those with colour vision deficiency in recognising the message tone. It should be used when the message needs to draw more attention than the other variants.
Negative
The negative toast uses the red semantic colour and includes an error icon (Error) to help those with colour vision deficiency understand the message tone. It’s used to indicate an error or failure.
Anatomy
Toast container
Icon
Text
Close button (optional)