useDefaultHelpers
See source codefunction useDefaultHelpers(): {
addDialog: (
dialog: Omit<import('./context/dialogs').TLUiDialog, 'id'> & {
id?: string | undefined
}
) => string
addToast: (
toast: Omit<import('./context/toasts').TLUiToast, 'id'> & {
id?: string | undefined
}
) => string
clearDialogs: () => void
clearToasts: () => void
copy: (source: import('./context/events').TLUiEventSource) => Promise<void>
copyAs: (
ids: import('@tldraw/editor').TLShapeId[],
format?: import('../..').TLCopyType
) => void
cut: (source: import('./context/events').TLUiEventSource) => Promise<void>
exportAs: (
ids: import('@tldraw/editor').TLShapeId[],
format: import('../..').TLExportType | undefined,
name: string | undefined
) => void
getEmbedDefinition: (url: string) => import('../..').TLEmbedResult
insertMedia: () => void
isMobile: boolean
msg: (id?: string | undefined) => string
paste: (
data: ClipboardItem[] | DataTransfer,
source: import('./context/events').TLUiEventSource,
point?: import('@tldraw/editor').VecLike | undefined
) => Promise<void>
printSelectionOrPages: () => Promise<void>
removeDialog: (id: string) => string
removeToast: (id: string) => string
}
Prev
useDefaultColorThemeNext
useDialogs