Skip to content

@agala-labs/ui

Textarea

Captures multi-line plain text.

Examples

Default
<AgalaTextarea v-model="notes" :rows="5" placeholder="Add notes" />

Import

import { AgalaTextarea } from '@agala-labs/ui'

API

PropTypeDefaultDescription
modelValuestring—Value used by v-model.
rowsnumber—Visible text rows.
resize'none' | 'vertical' | 'both''vertical'Resize behavior.
placeholderstring—Placeholder copy.
id / namestring—Native textarea identifiers.
required / readonlyboolean—Native form and editing state.
autocompletestring—Native autocomplete hint.
aria* / data-*string—Forwarded accessibility and data attributes.
error / errorMessageboolean / string—Validation state and copy.
disabledbooleanfalseDisables editing.

Events

  • update:modelValue(value: string)

Accessibility

Pair with FormField for a persistent label and clear error relationship.

Released under the MIT License.