Skip to content

AisTextarea ​

AisTextarea provides a branded <textarea> component to match other AIS form inputs. It is built on top of BaseTextarea and will support all standard textarea attributes. AisTextarea is a block element and should typically be placed on a grid.

Props ​

v-model ​

Use the v-model directive to bind to a textarea's value. v-model uses the modelValue prop under the covers. See Vue's documentation for details.

name ​

name is required when the field will be submitted with a form.

placeholder ​

placeholder sets the text that appears when no value is set.

rows ​

rows sets the number of text rows to display. The default is 5.

size ​

AisTextarea accepts the three standard form sizes, sm, md, and lg. Medium (md) is the default value.

required ​

Including the required prop will add the HTML required attribute. The prop will work in conjunction with AisField's required attribute.

disabled ​

Use the boolean disabled prop to disable an AisTextarea. You can use disabled by itself or :disabled="true".

invalid ​

Use the boolean invalid prop to mark an AisSelect as invalid. You can use invalid by itself or :invalid="true".

Events ​

@update:modelValue ​

AisTextarea uses Vue's standard v-model configuration. As a result, it will fire the @update:modelValue event whenever the textarea's value changes. Typically, v-model should be preferred, but binding the event directly may be useful in special circumstances. See Vue's documentation for details.