@mocanvas/mocanvas · function
declare function PlainTextArea({ text, isEditing, singleLine, placeholder, className, style, ref, onChange, onComplete, onCancel, onKeyDown }: TextAreaProps): react.JSX.Element | nullThe 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.