Skip to content

Textarea

The Textarea component is used for multi-line text input, such as descriptions or comments.

Props

PropTypeDefaultDescription
modelValuestring''The current value of the textarea. Use with v-model.
placeholderstring''Placeholder text shown when the textarea is empty.
rowsnumber0Number of visible text lines.
colsnumber0Number of visible columns (width).
disabledbooleanfalseDisables the textarea input.
invalidbooleanfalseApplies invalid styling to indicate an error state.

Usage Examples

Basic

html
<Textarea v-model="value" placeholder="Enter a description..." rows="3" cols="30" />
Description *
This is a hint text to help user.

Disabled

html
<Textarea v-model="disableValue" placeholder="sample" rows="5" cols="30" disabled />

Invalid

html
<Textarea v-model="invalidValue" placeholder="sample" rows="5" cols="30" invalid />