Public function

Signature
function useMenuIsOpen(
  id: string,
  cb?: (isOpen: boolean) => void
): readonly [boolean, (isOpen: boolean) => void]
Parameters
NameDescription

id

string

cb

(isOpen: boolean) => void
Returns
readonly [boolean, (isOpen: boolean) => void]
Source

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

useMenuClipboardEventsuseNativeClipboardEvents