Skip to content

Textarea

Multi-line text input with InputWrapper styling. Supports prefix icon and programmatic control.

Import

typescript
import { Textarea } from 'vuiii'

Basic Usage

vue
// Basic usage import { Textarea } from 'vuiii'

<Textarea v-model="description" placeholder="Enter description..." />

Props

PropTypeDefaultDescription
modelValuestring-Bound value (use with v-model)
prefixIconstring-Icon name to show before the textarea
size'small' | 'normal' | 'large''normal'Textarea size
invalidbooleanfalseApplies the invalid/error styling
pillbooleanfalseRounded pill shape
disabledbooleanfalseDisables the textarea
readonlybooleanfalseMakes the textarea read-only
rowsnumber | string-Number of visible rows (native attribute)

Slots

SlotDescription
prefixContent before the textarea (replaces prefixIcon)

Events

EventPayloadDescription
prefix-icon-click-When the prefix icon is clicked

More Examples

vue
// With rows and placeholder
<Textarea v-model="content" placeholder="Write your message..." rows="5" />
vue
// With prefix icon
<Textarea v-model="notes" prefix-icon="document-text" placeholder="Notes..." />
vue
// Validation state
<Textarea v-model="bio" :invalid="errors.bio" placeholder="Bio" />

Storybook

For interactive examples with all variants, see Textarea in Storybook.

Released under the MIT License.