Skip to content

BaseTextArea

View source on GitHub

A customizable text area component with support for validation, theming, and color context. *

Props

NameTypeRequiredDescription
labelstringnoThe label for the text area.
modelValuestringnoThe value bound to the text area.
idstringnoThe id for the text area.
placeholderstringnoThe placeholder text for the text area.
invalidInputbooleannoFlag to indicate if the input is invalid.
inputColorstringnoThe color context for the text area (e.g., "results").
storeNamestringnoThe name of the store for value updates.

Emits

  • update:modelValue
  • change:modelValue
  • set:keyboard

Exposed Methods

updateValue()

Updates the model value when text area changes.

Parameters:

  • e (Event): The input event.

setKeyboard()

Emits keyboard events.

Parameters:

  • e (Event): The keyboard event.

changeValue()

Emits value change events when text area loses focus.

Parameters:

  • e (Event): The blur event.