@mocanvas/mocanvas · interface

TextAreaProps

interface TextAreaProps

This 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): void

Properties · 10

className?: string
isEditing: boolean
onCancel?(): void

Escape: abandon the edit.

onComplete?(text: string): void

Enter (single-line) or a deliberate blur: the value is final.

onKeyDown?(event: KeyboardEvent$1<HTMLTextAreaElement>): void
placeholder?: string
ref?: Ref<HTMLTextAreaElement>
singleLine?: boolean

Commit on Enter and refuse newlines: frame names, page names.

style?: CSSProperties
text: string

The 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.