Themes

Components/Utils/toast
toast

Pops a toast notification at various levels. Automatically groups toasts with the same level, title and message.

Property
Value
error
(options: ToastOptions targetDocument?: Document = document) => Promise<() => void>
info
(options: ToastOptions targetDocument?: Document = document) => Promise<() => void>
success
(options: ToastOptions targetDocument?: Document = document) => Promise<() => void>
warning
(options: ToastOptions targetDocument?: Document = document) => Promise<() => void>

ToastOptions

Name
Description
Type
duration

How long to display the notification for before removing it.

number
icon

Icon to display on left of the toast. Will default to default of level.

IconDescription
message

Message to be displayed under the title.

string
onClick
(e: MouseEvent ) => void
title

Title to be displayed on the toast.

string

IconDescription

IconDescription = string | NamespacedIcon

NamespacedIcon

NamespacedIcon = [namespace: string | symbol, name: string]