Vue Textarea is a multi-line text input element. It supports Vue 3 with PrimeVue 3 and Vue 2 with PrimeVue 2.
Setup
Refer to PrimeVue setup documentation for download and installation steps for your environment such as Vue CLI, Vite or browser.
Import
import Textarea from 'primevue/textarea';
Getting Started
A model can be bound using the standard v-model directive.
<Textarea v-model="value" rows="5" cols="30" />
AutoResize
In auto resize mode, textarea grows instead of displaying a scrollbar.
<Textarea v-model="value" :autoResize="true" rows="5" cols="30" />
Theming
Textarea supports various themes featuring Material, Bootstrap, Fluent as well as your own custom themes via the Designer tool.
Resources
Visit the PrimeVue Textarea showcase for demos and documentation.