@mocanvas/mocanvas · function

TldrawUiMenuToolItem

declare function TldrawUiMenuToolItem({ toolId, label, icon, disabled }: TLUiMenuToolItemProps): react.JSX.Element | null

A menu item driven by the tool list, showing whether its tool is active.

Renders nothing when the tool is not registered, for the same reason TldrawUiMenuActionItem does.

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.