Skip to content

Textarea

Displays a form textarea or a component that looks like a textarea.

Examples

Default

vue
<Textarea placeholder="Type your message here." />

Disabled

vue
<Textarea disabled placeholder="Type your message here." />

With Label

vue
<div class="grid w-full max-w-sm gap-1.5">
  <label for="message">Your message</label>
  <Textarea id="message" placeholder="Type your message here." />
</div>

Props

Textarea

PropTypeDefaultDescription
classstring-Custom classes to apply to the textarea.
defaultValuestring | number-The default value of the textarea.
modelValuestring | number-The controlled value of the textarea.

Slots

Textarea

SlotDescription
defaultThe content of the textarea.