Skip to content

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 ​

NameType
v-modelstring

Props ​

PropTypeRequiredDefault
labelstringNo—
hideLabelbooleanNo—
ariaLabelstringNo—
hintstringNo—
placeholderstringNo—
rowsnumberNo3
resize"vertical" | "horizontal" | "both" | "none"No"vertical"
autoGrowbooleanNo—
maxLengthnumberNo—
disabledbooleanNo—