Public typealias

Signature
type TLUiDialogsContextType = {
  addDialog: (
    dialog: Omit<TLUiDialog, 'id'> & {
      id?: string
    }
  ) => string
  removeDialog: (id: string) => string
  updateDialog: (id: string, newDialogData: Partial<TLUiDialog>) => string
  clearDialogs: () => void
  dialogs: TLUiDialog[]
}
References

TLUiDialog

Source

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

TLUiDialogPropsTLUiEventContextType