InputTextarea.vue component is a reusable Vue.js component for multi-line text input. It supports features such as two-way data binding with v-model, customizable labels, and read-only or disabled states.
Features
Multi-Line Text Input
Provides a
textarea element for entering long text.Custom Labels
Displays a label alongside the input for enhanced user experience.
Read-Only and Disabled States
Offers flexibility to control user interaction.
Usage
Basic Example
Disabled Input
Read-Only Input
Props
string | number | object
default:"undefined"
The value bound to the textarea input field.
string
default:"''"
The label displayed above the textarea input field.
string
default:"null"
Error message to display for validation errors (if any).
Example Use Cases
Reactive Text Input
Bind the textarea value reactively usingv-model:
Notes
- The
v-modelprop provides seamless integration for managing the textarea’s value reactively. - The
labelprop enhances usability by providing context for the input field. - The
errorprop can be used to highlight validation issues, visually marking the input as erroneous.