hero

VeeValidate

Template Based Validation Framework for Vue.js

Get Started →

Simple

Template based validation that is both familiar and easy to setup.

Flexible

Validate HTML inputs and Vue components, generate localized errors, Extendable, It does it all.

Configurable

Config that doesn't get into your way, everything is optional.

Quick Setup

Version

This is a the docs for vee-validate 2.x, to access the docs for the latest version 3.x from here.

install

# install with npm
npm install vee-validate

# install with yarn
yarn add vee-validate

Use

In your html

<input v-validate="'required'" name="myinput" type="text">
<span>{{ errors.first('myinput') }}</span>

And in your JavaScript:

Vue.use(VeeValidate);