@mocanvas/mocanvas · interface

TLUiMenuItemProps

interface TLUiMenuItemProps

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 10

children?: ReactNode

Rendered instead of the label; for an item that needs custom content.

disabled?: boolean
icon?: string
id: string
isSelected?: boolean

Marks this item as the active one in a set.

kbd?: string
label?: string
noClose?: boolean

Keep the menu open after selecting.

onSelect?(source: TLUiEventSource): void
title?: string

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.