@mocanvas/mocanvas · interface
interface TextAreaPropsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Methods · 1
onChange(text: string): voidProperties · 10
className?: stringisEditing: booleanonCancel?(): voidEscape: abandon the edit.
onComplete?(text: string): voidEnter (single-line) or a deliberate blur: the value is final.
onKeyDown?(event: KeyboardEvent$1<HTMLTextAreaElement>): voidplaceholder?: stringref?: Ref<HTMLTextAreaElement>singleLine?: booleanCommit on Enter and refuse newlines: frame names, page names.
style?: CSSPropertiestext: stringThe current value.
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.