Public function

Signature
function useMenuClipboardEvents(): {
  copy: (source: TLUiEventSource) => void
  cut: (source: TLUiEventSource) => void
  paste: (
    data: ClipboardItem[] | DataTransfer,
    source: TLUiEventSource,
    point?: VecLike
  ) => Promise<void>
}
References

TLUiEventSource, VecLike

Source

packages/tldraw/src/lib/ui/hooks/useClipboardEvents.ts

useLocalStorageStateuseMenuIsOpen