TextArea
A multi-line text field.
Use it for: Notes and longer answers, inside a Form.
- CategoryInput
- ChildrenNone
- DataOne field (bindings.value)
- ActionNone
| Prop | Required | Accepts | What it does |
|---|---|---|---|
label |
Yes | text, up to 200 characters | The visible label, also read by VoiceOver. |
required |
No | true or false |
The form cannot be saved while this is empty. |
disabled |
No | true or false |
Show it greyed out and ignore taps. |
maxLength |
No | whole number, 1 to 10000 | The most characters the user can type. |
Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options.
Example
Section titled “Example”From the fitness example project:
{ "id": "notes", "type": "TextArea", "props": { "label": "Notes", "maxLength": 1000 }, "bindings": { "value": { "model": "workout", "field": "notes" } }}