Components/Utils/toastPops a toast notification at various levels. Automatically groups toasts with the same level, title and message.
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
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 |
NamespacedIconNamespacedIcon
NamespacedIcon = [namespace:
string | symbol, name: string]