Skip to content

Textarea

Multi-line text input with auto-resize and character count.

Basic Usage

vue
<ATextarea v-model="value" label="Message" :rows="3" />

Auto-resize + Character Count

With autosize, the textarea grows automatically. Use minRows / maxRows to set limits.

51/200
vue
<ATextarea
  v-model="value"
  :autosize="{ minRows: 2, maxRows: 6 }"
  :maxlength="200"
  show-count
/>

API

Props

NameTypeDefaultDescription
modelValuestring''Bound value
labelstringTop label
placeholderstringPlaceholder
rowsnumber3Initial rows
maxlengthnumberMax characters
showCountbooleanfalseShow character count
autosizeboolean | { minRows?: number; maxRows?: number }falseAuto-resize
disabledbooleanfalseDisabled
readonlybooleanfalseRead-only
errorbooleanfalseError state
errorMessagestringError message

Emits

Same as Input.

MIT License