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

TLUiToast


clearToasts

Public propertysignature

Signature
clearToasts: () => void

removeToast

Public propertysignature

Signature
removeToast: (id: TLUiToast['id']) => string
References

TLUiToast


toasts

Public propertysignature

Signature
toasts: TLUiToast[]
References

TLUiToast


TLUiToastActionTLUiToolItem