Skip to content

Textarea

Multiline input with resize, invalid state, and form events.

Usage

vue
<script setup>
import { ref } from "vue";
import { ArchTextarea } from "@archora/ui";

const notes = ref("");
</script>

<template>
  <ArchTextarea v-model="notes" rows="6" placeholder="Release notes" />
</template>

Live sandbox

Textarea can be tested directly on this page.

interactive
<Textarea />

Props

PropTypeDefaultDescription
modelValuestring""v-model value.
size"sm" | "md" | "lg""md"Size.
resize"none" | "vertical" | "horizontal" | "both""vertical"Resize behavior.
rowsnumber | string4Row data.
placeholderstring-Placeholder.
namestring-Field name.
autocompletestring-Autocomplete.
disabledbooleanfalseDisables the component.
readonlybooleanfalseRead-only state.
requiredbooleanfalseMarks the field as required.
invalidbooleanfalseInvalid state.
ariaLabelstring-aria-label.
ariaLabelledbystring-aria-labelledby.
ariaDescribedbystring-aria-describedby.

Events

EventPayloadDescription
update:modelValuevalue: stringmodelValue change.
inputevent: EventComponent event.
changeevent: EventValue change.
blurevent: FocusEventComponent event.
focusevent: FocusEventComponent event.