@mocanvas/mocanvas · function

PlainTextArea

declare function PlainTextArea({ text, isEditing, singleLine, placeholder, className, style, ref, onChange, onComplete, onCancel, onKeyDown }: TextAreaProps): react.JSX.Element | null

The editable surface behind a plain-text label.

A real <textarea> rather than a contenteditable div: it gets the platform's own caret, selection, IME and autocorrect behaviour, all of which a hand-rolled editor loses and users notice immediately.

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.