TLUiToastsContextType
Table of contents
Public interface
Signature
interface TLUiToastsContextType {}
Source
packages/tldraw/src/lib/ui/context/toasts.tsx
Properties
addToast
Public propertysignature
Signature
addToast: (
toast: Omit<TLUiToast, 'id'> & {
id?: string
}
) => string
References
clearToasts
Public propertysignature
Signature
clearToasts: () => void
removeToast
Public propertysignature
Signature
removeToast: (id: TLUiToast['id']) => string
References
toasts
Public propertysignature
Signature
toasts: TLUiToast[]
References