Public typealias

Signature
type TLUiMenuItemProps<
  TranslationKey extends string = string,
  IconType extends string = string,
> = {
  readonlyOk?: boolean
  noClose?: boolean
  onSelect: (source: TLUiEventSource) => Promise<void> | void
  icon?: IconType
  kbd?: string
  label?:
    | {
        [key: string]: TranslationKey
      }
    | TranslationKey
  isSelected?: boolean
  disabled?: boolean
  spinner?: boolean
  id: string
}
References

TLUiEventSource

Source

packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuItem.tsx

TLUiMenuGroupPropsTLUiMenuSubmenuProps