Public function

Signature
function menuItem(
  actionItem: TLUiActionItem | TLUiToolItem,
  opts?: Partial<{
    checked: boolean
    disabled: boolean
  }>
): TLUiMenuItem
Parameters
NameDescription

actionItem

TLUiActionItem | TLUiToolItem

opts

Partial<{
  checked: boolean
  disabled: boolean
}>
Returns
TLUiMenuItem
References

TLUiActionItem, TLUiToolItem, TLUiMenuItem

Source

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

menuGroupmenuSubmenu