toast

toast
Not required
object
text
Required
string/elementType
type
Not required
("info" | "success" | "error" | "cta")
"info"
title
Not required
string/elementType
actions
Not required
array
duration
Not required
number
icon
Not required
string/elementType
handleClose
Not required
func
closable
Not required
bool

Toast is used for displaying messages that shoot out of a corner of the page like a toast. We use the useToast hook as shown below: