Textarea

Multi-line text input with label, counter, and sizing options.

Textarea

Placeholder animation

The placeholder of an empty field stays readable at rest, dissolves on focus, and reassembles when an empty field loses focus. Multiline hints retain their line breaks. Entered text hides the hint immediately. The animation follows the system’s reduced-motion preference; the label remains separate.

Default

Bind text with v-model for controlled input.

Size

Compare the inherited small, default, and large component sizes.

Shape

Use shape="square" to apply straight corners to the field, focus surface, and counter area.

Label

The label starts inside an empty field, then moves fully above the border on focus or when a value is present, matching the Input label baseline.

Counter

Show remaining characters and warn when the limit is exceeded.

Width

Set a fixed width for form layouts.

Height

Control the visible height of the textarea.

Advanced

Use max-length, show-word-count, auto-size and trim for a bounded, automatically growing field.

Disabled

disabled prevents editing and focus, using reduced opacity and an unavailable cursor.

Loading

loading preserves text and normal emphasis, shows the shared loader at the top right, and uses a progress cursor. Input and value commits are blocked, including trimming on blur.

API

PROPS

Property
Type
Values
Description
default
Example
More
loading
Boolean
true | false
Show the shared loader at the top right, preserve content and normal emphasis, and block editing and value commits.
false
size
small | medium | large
Set or inherit the control size.
—
—
shape
String
rounded | square
Set rounded or square geometry for the field and counter.
rounded
v-model
String
string
Textarea value.
—
label
String
label text
Floating label text.
—
color
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
Set the field and counter accent color.
primary
counter
Number | String
number | numeric string
Display a character limit and counter.
—
counter-danger
Boolean
true | false
Highlight counter when limit exceeded.
false
placeholder
String
placeholder text
Empty-field hint; dissolves on focus and reassembles after blur. Supports line breaks and wrapping.
—
name
String
form field name
Set the native form field name.
—
form
String
form element id
Associate the textarea with a form element.
—
max-length
Number | String
non-negative length
Set the native input length limit.
—
show-word-count
Boolean
true | false
Show the current character count.
false
count-method
Function
({ value: string }) => number
Customize the displayed character count.
value.length
auto-size
Object
{ minRowsmaxRows }
Grow height with content within row bounds.
—
readonly
Boolean
true | false
Set the native textarea to read-only.
false
disabled
Boolean
true | false
Disable editing and interaction.
false
editable
Boolean
true | false
Allow the textarea value to be edited.
true
trim
Boolean
true | false
Trim leading and trailing whitespace when a change is committed.
false
rows
Number | String
native row count
Set the native textarea row count.
—
cols
Number | String
native column count
Set the native textarea column count.
—
resize
String
none | both | horizontal | vertical
Control the native resize direction.
—
immediate
Boolean
true | false
Update while typing, or commit the value on change and blur.
true
height
String
CSS height
Textarea height.
—
width
String
CSS width
Textarea width.
—

EVENTS

Event
Type
Description
default
Example
More
update:modelValue
—
Emitted when value changes.
—
—
input
—
Native input event.
—
—
focus
—
Emitted on focus.
—
—
blur
—
Emitted on blur.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied