Skip to main content

ToastMessage

Use toast messages to provide updates about a process. The ToastMessage component extends Box.

Usage Example:

Live Editor
Result

Props#

PropTypeDefaultDescription
actionHrefstring (optional)''Sets URL for button.
actionTextstring (optional)''Sets text for button.
closeElembool (optional)falseAllows ToastMessage to be closed by user
colorThemeenum (optional)'light'Sets background and text color. Allowed values: 'light' 'dark'.
iconstring (optional)''Sets icon to display
messagestring (optional)'Write update here [Required]'Sets primary message text
secondaryMessagestring (optional)''Sets secondary message text
variantenum (optional)'default'Sets type of ToastMessage to display. Allowed values: 'default' 'success' 'failure' 'processing'.