Components - Text fields
Text fields components are used for collecting user provided information.
Text-fields come in two theme options, dark and light.
The dark theme compliments darker backgrounds.
Single line text-fields do not float their label on focus or with data.
A single line label mimics the display of a placeholder.
Icons can be specified as prepended or appended.
The icon inherits the applications primary color on text-field focus.
A multi-line text-field is useful for larger amounts of text.
Multi-line text-fields can be set to autogrow allowing the field to scale with the input.
Use a counter to inform a user of the maximum or minium character limit.
33 / 50
53 / 50
A password input can be used with an appended icon and callback to control the visibility.
The rules prop accepts an array of callbacks. While validating rules, the current v-model value will be passed to the callback. This callback should return eithertrue
or aString
, the error message.
115 / 120
124 / 120
Light theme.
Trevor Hansen Alex Nelson
118 / 120
Designates the input as required
Personal Info*indicates required field
Hint text and forces hint visible.
Search for new keywords using a phrase, website or category
Enter one or more of the following
Displays prefix/suffix text.
$
lbs
@gmail.com
PST
If you want to skip the built in validation and use your own or a plugin such as vuelidate or vee-validation, you can use the errors or error props. Errors accepts a string or array and error simply places the field in an error state.
Textarea text-fields have an alternate style.