TLUiToastsContextType

Public TypeAlias

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

Omit, TLUiToast

Edit this page
Last edited on 5 June 2023
TLUiToastActionTLUiToolbarItem