Textarea

The e-textarea component is built for multi-line input with the same field system used by other form controls. It supports visual variants, prefix/suffix tokens, icons, validation, and helper messaging.

Use this page to choose the right structure for comments, descriptions, and long-form input while preserving clarity, consistency, and predictable submission behavior.

Usage

Use this baseline playground to configure Textarea in context: color, outlined, clearable, readonly, disabled, retain-color, rows, and counter/limit from a single control panel.

primary
4

Visual variants

Compare filled and outlined variants across interactive, readonly, and disabled states to define hierarchy and readability in dense form layouts.

Rows and length

Control vertical footprint with rows and add guardrails with limit + counter for long-form input quality.

10 / 80
62 / 180
125 / 480

Icons and affixes

Use icon and affix props such as prependIcon, appendInnerIcon, prefix, and suffix to reinforce intent and scanning without adding extra fields.

Named slots

Compose richer multiline fields with slots like prepend and append-inner to add context and quick actions in place.

Validation

Apply rule-based validation and submit-state gating so long-form input stays actionable and errors remain visible before submission.

Feedback form

Complete required fields to continue

0 / 280

Props

Use the API table as source of truth for supported props, accepted types, defaults, and inherited field behavior.

PropertyTypeDefault
modelValuestring | number | nullundefined

Current textarea value. Supports controlled usage with v-model.

namestringundefined

Native textarea name attribute used in form submissions.

placeholderstringundefined

Placeholder shown when there is no value and label behavior allows it.

rowsstring | number3

Initial visible row count for the textarea input area.

prefixstringundefined

Text rendered before the textarea input region.

suffixstringundefined

Text rendered after the textarea input region.

autocompletestringundefined

Native autocomplete attribute for browser autofill behavior.

inputReadonlybooleanfalse

Applies readonly directly to the native textarea element.

iconClearstring | IconPath | IconPath[]undefined

Overrides icon used by the clear action button.

limitstring | numberundefined

Maximum number of characters allowed in textarea input.

counterbooleanfalse

Displays character counter in details section.

spellcheckbooleanfalse

Enables browser spell checking for textarea content.

autocapitalizestringundefined

Controls automatic capitalization behavior on supported devices.

enterkeyhintTextInputEnterKeyHintundefined

Hints the Enter key action label on virtual keyboards.

modelModifiersTextInputModelModifiers{}

v-model modifiers map (trim, number, lazy) applied by input logic.

clearablebooleanfalse

Shows clear action when a value exists.

colorstring"primary"

Base theme color applied to field state and interactions.

outlinedbooleanfalse

Uses outlined visual variant for the field container.

disabledbooleanfalse

Disables interaction and prevents value updates.

readonlybooleanfalse

Prevents editing while preserving focus behavior.

densebooleanfalse

Applies denser vertical spacing inherited from Field.

retainColorbooleanfalse

Keeps active color styling after focus/interaction.

labelstring | numberundefined

Field label text.

labelMinWidthstring | numberundefined

Minimum width reserved for label region.

labelBehavior"static" | "floating" | "inline""static"

Label behavior strategy for static/floating/inline presentation.

inputAlignleft | right | center | start | end"start"

Horizontal text alignment inside input/selection area.

prependIconstring | IconPath | IconPath[]undefined

Icon rendered in outer-left affix region.

prependInnerIconstring | IconPath | IconPath[]undefined

Icon rendered before content inside input frame.

appendInnerIconstring | IconPath | IconPath[]undefined

Icon rendered after content inside input frame.

appendIconstring | IconPath | IconPath[]undefined

Icon rendered in outer-right affix region.

detailstringundefined

Helper text shown in details area when no errors are present.

detailsOnMessageOnlybooleanfalse

Shows details area only when messages/errors exist.

rulesFieldRule[]undefined

Validation rules evaluated against modelValue.

detailErrorsstring[]undefined

Explicit error messages rendered in details area.