@mocanvas/mocanvas · function

TldrawUiIcon

declare function TldrawUiIcon({ icon, label, small, invertIcon, className, style, color }: TLUiIconProps): react.JSX.Element

An icon, from the built-in set, from a URL, or as a fallback initial.

aria-hidden unless it was given a label: an icon inside a labelled button is decoration, and announcing it would make a screen reader say the name twice.

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.