Skip to main content

TextArea

A controlled multiline editor.

Props​

PropTypeRequired
accessibilityHintstringNo
autocorrectbooleanNo
contentTypestringNo
descriptionnullableStringNo
enabledbooleanNo
keyboardstringNo
labelstringNo
placeholderstringNo
presentationstringNo
semanticsstringNo
validationMessagenullableStringNo
valuestringNo

Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.

Example​

<Column state="{draft:''}"><TextArea label="Draft" model="draft" /></Column>

Defaults, values, and validation​

value defaults to an empty string. focus/blur are local commands. Input traits and validation use the same conventions as TextField.

Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.

Events​

on-change

change carries {value: ...} with the controlled value. See this primitive’s value rules; model assigns this field before the explicit handler.

Local commands​

blur, focus

Keyboard values: default/email/number/decimal/phone. Content types: none/name/email/username/password/newPassword/oneTimeCode. Password content types require secure editing; use TextField for secure single-line entry.

Native primitive index · Events · Host APIs