Appearance
TextArea
A multi-line text field with optional label and hint. Like TextInput, the model updates when the field loses focus or on Ctrl/Cmd+Enter, not on every keystroke, so a model run bound to it does not fire mid-sentence.
Examples
Basic
vue
<script setup>
import { ref } from "vue";
const notes = ref("");
</script>
<TextArea
v-model="notes"
label="Scenario notes"
placeholder="What does this scenario assume?"
hint="Saved with the run"
/>Auto grow
auto-grow sizes the field to its text (field-sizing: content), with rows as the minimum. Browsers without field-sizing keep the fixed rows height. resize picks which edges the user may drag (vertical by default).
vue
<TextArea
v-model="description"
label="Description"
:rows="2"
auto-grow
resize="none"
/>Model
| Name | Type |
|---|---|
v-model | string |
Props
| Prop | Type | Required | Default |
|---|---|---|---|
label | string | No | — |
hideLabel | boolean | No | — |
ariaLabel | string | No | — |
hint | string | No | — |
placeholder | string | No | — |
rows | number | No | 3 |
resize | "vertical" | "horizontal" | "both" | "none" | No | "vertical" |
autoGrow | boolean | No | — |
maxLength | number | No | — |
disabled | boolean | No | — |