T
ToastStoreState
State and actions of the toast store.
type ToastStoreState = { … }Members
addToast
(options: InternalToastOptions) => ToastHandleShows a toast, replacing any with the same id, and stamps date when unset.
toasts
Record<string, InternalToastOptions>Every toast on screen, keyed by toast id, including ones playing their exit animation.
updateToastWithOptions
(id: string, options: Partial<InternalToastOptions>) => voidMerges options into the toast id. Does nothing when no such toast is on screen.