Public function

Signature
function TldrawUiMenuItem<
  TranslationKey extends string = string,
  IconType extends string = string,
>({
  disabled,
  spinner,
  readonlyOk,
  id,
  kbd,
  label,
  icon,
  onSelect,
  noClose,
  isSelected,
}: TLUiMenuItemProps<TranslationKey, IconType>):
  | import('react/jsx-runtime').JSX.Element
  | null
Parameters
NameDescription

{ disabled, spinner, readonlyOk, id, kbd, label, icon, onSelect, noClose, isSelected, }

TLUiMenuItemProps<TranslationKey, IconType>
Returns
import('react/jsx-runtime').JSX.Element | null
References

TLUiMenuItemProps

Source

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

TldrawUiMenuGroupTldrawUiMenuSubmenu