@mocanvas/mocanvas · function

TextLabel

declare function TextLabel(props: TextLabelProps): ReactNode

A shape's text label. Static text when idle; while editing, a plain-text <textarea> overlays an invisible copy of the text so the box keeps the exact size the static label would have.

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.