@mocanvas/mocanvas · type

TLUiIconType

type TLUiIconType = IconName | (string & {})

A built-in icon name, or any string.

Widened to string on purpose: an app's override may name artwork it serves itself, and a union that refused those would make every custom menu item a cast. Editors still autocomplete the built-in names, which is the part that actually helps.

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.