Form component — Vuetify.js
vuetify.cn › en › componentsAll input components have a rules prop which takes an array of functions. These functions allow you to specify conditions in which the field is valid or invalid. Whenever the value of an input is changed, each function in the array will receive the new value. If a function returns false or a string, validation has failed. API
Input component — Vuetify.js
vuetify.cn › en › componentsThe v-input component gives you a baseline to create your own custom inputs. It consists of a prepend/append slot, messages, and a default slot. It is recommended that you extend this component, but it can be used as a standalone. Usage v-input has 4 main areas. The prepended slot, the appended slot, the default slot, and messages.
Form component — Vuetify.js
All input components have a rules prop which takes an array of functions. These functions allow you to specify conditions in which the field is valid or invalid. Whenever the value of an input is changed, each function in the array will receive the new value. If a function returns false or a string, validation has failed. API