Public function

Signature
function menuSubmenu(
  id: string,
  label: Exclude<string, TLUiTranslationKey> | TLUiTranslationKey,
  ...children: (false | TLUiMenuChild)[]
): null | TLUiSubMenu
Parameters
NameDescription

id

string

label

  | Exclude<string, TLUiTranslationKey>
  | TLUiTranslationKey

children

(false | TLUiMenuChild)[]
Returns
null | TLUiSubMenu
References

TLUiTranslationKey, TLUiMenuChild, TLUiSubMenu

Source

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

menuItemNoteShapeTool