Public typealias

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

TLUiToast

Source

packages/tldraw/src/lib/ui/hooks/useToastsProvider.tsx

TLUiToastActionTLUiToolbarItem