Public function

Signature
function menuCustom(
  id: string,
  opts?: Partial<{
    readonlyOk: boolean
    disabled: boolean
  }>
): {
  id: string
  type: 'custom'
  disabled: boolean
  readonlyOk: boolean
}
Parameters
NameDescription

id

string

opts

Partial<{
  readonlyOk: boolean
  disabled: boolean
}>
Returns
{
  id: string
  type: 'custom'
  disabled: boolean
  readonlyOk: boolean
}
Source

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

LineShapeUtilmenuGroup