Public typealias

Signature
type TLUiToastsContextType = {
  addToast: (
    toast: Omit<TLUiToast, 'id'> & {
      id?: string
    }
  ) => string
  clearToasts: () => void
  removeToast: (id: TLUiToast['id']) => string
  toasts: TLUiToast[]
}
References

TLUiToast

Source

packages/tldraw/src/lib/ui/context/toasts.tsx

TLUiToastActionTLUiToolItem