Public function

Signature
function findMenuItem(
  menu: TLUiMenuSchema,
  path: string[]
): TLUiCustomMenuItem | TLUiMenuGroup | TLUiMenuItem | TLUiSubMenu<string>
Parameters
NameDescription

menu

TLUiMenuSchema

path

string[]
Returns
  | TLUiCustomMenuItem
  | TLUiMenuGroup
  | TLUiMenuItem
  | TLUiSubMenu<string>
References

TLUiMenuSchema, TLUiCustomMenuItem, TLUiMenuGroup, TLUiMenuItem, TLUiSubMenu

Source

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

exportAsfitFrameToContent