Skip to content
On this page

Textarea

Basic

You can use ATextarea component to render basic textarea.

Placeholder

You can use placeholder attribute to add placeholder to the textarea.

Label

You can use label prop to add label to the textarea.

Height

You can adjust the height of ATextarea component by providing height prop with the value of valid height class. You have to prefix ! to override the default height for using custom height.

Auto Size

You can use auto-size prop to automatically update the height of ATextarea depending on the content.

API

Textarea

disabled : boolean

Set component in disabled state

readonly : boolean

Set component in readonly mode

loading : boolean

Set loading state

autoSize : boolean

Automatically update the height of a textarea depending on the content.

appendIcon : string

Append icon

modelValue : string
inputWrapperClasses : any

Input wrapper classes

inputClasses : any

Input classes

inputWrapperAttrs : HTMLAttributes

Input wrapper attributes

hint : string

Add hint below the form component

error : string

Error text to render. This will replace hint text if provided.

label : ConfigurableValue

Label of the form component

prependIcon : string

Prepend icon

prependInnerIcon : string

Prepend icon inside input

appendInnerIcon : string

Append icon inside input

height : string

Textarea height. Provide valid CSS height class with ! prefixed.

label : any
prepend : any
prepend-inner : any
append-inner : any
append : any
bottom : any
update:modelValue => [value: string | undefined]

Released under the MIT License.