Skip to content

Textarea API

API reference docs for the Stash Textarea component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Textarea from '@leaflink/stash/Textarea.vue';

Props

NameTypeDefaultDescription
disabledbooleanfalseIndicates whether the textarea is disabled.
errorTextstring '' Error text for the textarea element.
hintTextstring '' Hint text for the textarea element.
labelstring ' ' Label text for the textarea element.
modelValuestring '' Value for the textarea element.
placeholderstringundefinedPlaceholder text for the textarea element. **Note:** placeholders should be used to display examples; they should not be used as labels because they are not accessible as labels. If a real label cannot be used, use the `aria-label` attribute.
resizeboolean | TextareaResizeOptionsfalseAllow textarea to be resizable vertically. Alternatively if you want to disable automatic scroll when resizing, you can set `{ forceBrowserScroll: false }`
showOptionalInLabelbooleanfalseRender "(optional)" to the right of the label text
valuestring | number | nullnullDeprecated. Use :model-value or v-model instead of :value.

Slots

NameDescription
hintHint content

Events

NameDescription
update:model-valueEmitted when the model value changes.