Textarea
Basic Usage
This is not a component per se. It’s the HTML <textarea>
element.
Check next sections to see how you can use a stacked or floating label for it.
Error State
Add has-error
CSS class:
Modifiers for v-model
.lazy
By default, v-model
syncs the input with the data after each input
event. You can add the lazy
modifier to instead sync after change
events:
.number
If you want user input to be automatically typecast as a number, you can add the number
modifier to your v-model
managed inputs:
This is often useful, because even with type="number"
, the value of HTML input elements always returns a string.
.trim
If you want user input to be trimmed automatically, you can add the trim
modifier to your v-model
managed inputs:
Stacked Label
|
Floating Label
|
Note that “required” is mandatory. Don’t think this will interfere with your validations. We’re using Vue, so use something like Vuelidate instead of relying on the browser’s form validations.
Inside of a List Usage
|