# Vue form libraries

Vue form libraries manage form values, validation rules, and error messages in Vue components. A validation library either binds rules to fields it manages or validates reactive models that the application already owns. These libraries let apps reject invalid input before it reaches a server.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [vee-validate](#veevalidate) | 5.8M | 11.3K | Jun 2025 | MIT |
| [Vuetify](#vuetify) | 5.3M | Not on GitHub | Nov 2026 | MIT |
| [Element Plus](#element-plus) | 3.1M | Not on GitHub | Nov 2026 | MIT |
| [Vuelidate](#vuelidate) | 2.4M | 6.9K | Jun 2023 | MIT |
| [Quasar](#quasar) | 2.0M | Not on GitHub | Nov 2026 | MIT |
| [Ant Design Vue](#ant-design-vue) | 909.8K | Not on GitHub | Nov 2024 | MIT |
| [PrimeVue Forms](#primevue-forms) | 805.9K | Not on GitHub | Nov 2026 | PrimeUI License |
| [naive-ui](#naive-ui) | 792.8K | Not on GitHub | Aug 2026 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[vee-validate](#veevalidate) has the most monthly downloads in this comparison, at 5.8M.

## Capabilities

| Library | Form-level rules | Automatic submit validation |
| --- | --- | --- |
| [vee-validate](#veevalidate) | Yes | Yes |
| [Vuetify](#vuetify) | No | Yes |
| [Element Plus](#element-plus) | Yes | No |
| [Vuelidate](#vuelidate) | Yes | No |
| [Quasar](#quasar) | No | Yes |
| [Ant Design Vue](#ant-design-vue) | Yes | Yes |
| [PrimeVue Forms](#primevue-forms) | Yes | Yes |
| [naive-ui](#naive-ui) | Yes | Undocumented |

## Libraries

### vee-validate

[GitHub](https://github.com/logaretm/vee-validate) · [npm](https://www.npmjs.com/package/vee-validate) · [Docs](https://vee-validate.logaretm.com/v4/api/use-form/)

Manages Vue form values, field bindings, and validation without prescribing the UI.

- Downloads / mo: 5.8M
- Stars: 11.3K
- Last release: 4.15.1
- License: MIT
- Capabilities: [From the vee-validate docs](https://vee-validate.logaretm.com/v4/api/use-form/)

**Strengths**

- **Builds field models and props.** Use defineField for bindings and handleSubmit for validated submissions.
- **Works with any chosen UI.** Pair validation with native inputs or a component library.

**Watch out for**

- **Form values are read-only.** Use setFieldValue or setValues to update managed values.
- **Schema adapters need companion packages.** Install the matching adapter before using Zod or Valibot schemas.

```sh
npm install vee-validate@4.15.1 vue
```

**Quickstart**

```typescript
import { useForm } from 'vee-validate';

export function useNameForm() {
  const form = useForm({
    initialValues: { name: '' },
    validationSchema: { name: value => Boolean(value) || 'Required' },
  });
  const [name, nameProps] = form.defineField('name');
  const submit = form.handleSubmit(values => console.log(values));
  return { name, nameProps, submit };
}

```

From [README.md](https://api.github.com/repos/logaretm/vee-validate/contents/packages/vee-validate/src/useForm.ts?ref=v4.15.1) · [Find projects using vee-validate →](https://dashboard.exa.ai/playground/search?q=Vue%20TypeScript%20applications%20using%20vee-validate%20for%20reactive%20forms%2C%20validation%2C%20server%20errors%20and%20custom%20input%20integration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### Vuetify

[GitHub](https://github.com/vuetifyjs/vuetify) · [npm](https://www.npmjs.com/package/vuetify) · [Docs](https://vuetifyjs.com/en/components/forms/)

Provides a Material component framework for Vue.

- Downloads / mo: 5.3M
- Last release: 4.3.4
- License: MIT
- Capabilities: [From the Vuetify docs](https://vuetifyjs.com/en/components/forms/)

```sh
npm install vuetify@4.3.4 vue
```

**Quickstart**

```vue
<script setup>
import { ref } from 'vue';
import { VForm, VTextField, VBtn } from 'vuetify/components';
const name = ref('');
async function submit(event) {
  const { valid } = await event;
  if (valid) console.log(name.value);
}
</script>
<template>
  <VForm @submit.prevent="submit">
    <VTextField v-model="name" :rules="[v => Boolean(v) || 'Required']" />
    <VBtn type="submit">Validate</VBtn>
  </VForm>
</template>

```

From [VForm.tsx](https://api.github.com/repos/vuetifyjs/vuetify/contents/packages/vuetify/src/components/VForm/VForm.tsx?ref=v4.3.4) · [Find projects using Vuetify →](https://dashboard.exa.ai/playground/search?q=vuetify%20GitHub%20projects)

### Element Plus

[GitHub](https://github.com/element-plus/element-plus) · [npm](https://www.npmjs.com/package/element-plus) · [Docs](https://element-plus.org/en-US/component/form.html)

Provides a component library for Vue.

- Downloads / mo: 3.1M
- Last release: 2.14.8
- License: MIT
- Capabilities: [From the Element Plus docs](https://element-plus.org/en-US/component/form.html)

```sh
npm install element-plus@2.14.8 vue
```

**pure-admin/vue-pure-admin** (20.8K stars)

[pure-admin/vue-pure-admin](https://github.com/pure-admin/vue-pure-admin) 

```vue
formEl => {
  if (!formEl) return;
  formEl.validate(valid => {
    if (valid) {
      // 多个 file 在一个接口同时上传
      const formData = createFormData({
        files: validateForm.fileList.map(file => ({ raw: file.raw })), // file 文件
        date: validateForm.date // 别的字段
      });
      formUpload(formData)
        .then(({ code }) => {
          if (code === 0) {
            message("提交成功", { type: "success" });
          } else {
            message("提交失败");
          }
        })
        .catch(error => {
          message(`提交异常 ${error}`, { type: "error" });
        });
    } else {
      return false;
    }
  });
}
```

[src/views/components/upload/form.vue](https://github.com/pure-admin/vue-pure-admin/blob/fae75ad1cd52d11a7279931ef5bba2b80e363c7b/src/views/components/upload/form.vue#L16-L40) · [More projects using Element Plus →](https://dashboard.exa.ai/playground/search?q=element-plus%20GitHub%20projects)

**Quickstart**

```vue
<script setup>
import { reactive, ref } from 'vue';
import { ElForm, ElFormItem } from 'element-plus';
const form = ref();
const model = reactive({ name: '' });
const rules = { name: [{ required: true, message: 'Required' }] };
function submit() {
  form.value.validate(valid => { if (valid) console.log(model.name); });
}
</script>
<template>
  <ElForm ref="form" :model="model" :rules="rules">
    <ElFormItem prop="name"><input v-model="model.name" /></ElFormItem>
    <button type="button" @click="submit">Validate</button>
  </ElForm>
</template>

```

From [form.vue](https://api.github.com/repos/element-plus/element-plus/contents/packages/components/form/src/form.vue?ref=2.14.8)

### Vuelidate

[GitHub](https://github.com/vuelidate/vuelidate) · [npm](https://www.npmjs.com/package/@vuelidate/core) · [Docs](https://vuelidate-next.netlify.app/api/methods)

Adds model-based validation to reactive Vue objects and refs.

- Downloads / mo: 2.4M
- Stars: 6.9K
- Last release: 2.0.3
- License: MIT
- Capabilities: [From the Vuelidate docs](https://vuelidate-next.netlify.app/api/methods)

**Strengths**

- **Validates existing reactive models.** Keep the data in reactive objects or refs.
- **Shows server validation errors.** Pass server messages through $externalResults to the matching fields.

**Watch out for**

- **Receives long-term maintenance.** Compare active alternatives before starting a new validation layer.
- **Prefer nested components for collections.** forEach reruns every validator on every collection change.

```sh
npm install @vuelidate/core@2.0.3 vue
```

**YunoHost/yunohost-admin** (121 stars)

[YunoHost/yunohost-admin](https://github.com/YunoHost/yunohost-admin) 

```typescript
export function useForm<
  MV extends Obj,
  FFD extends FormFieldDict<MV> = FormFieldDict<MV>,
>(form: Ref<MV> | WritableComputedRef<MV>, fields: FFD | (() => FFD)) {
  const serverErrors = reactive<ServerErrors>({})
  const validByDefault = { true: () => true as const }
  // create a fake validation rule for global state to be able to add $externalResult errors to it
  const rules = ref({ global: validByDefault, form: {} }) as Ref<{
    global: { true: () => true }
    form: ValidationArgs<MV>
  }>
  function updateRules(ffd: FFD) {
    const validations = Object.keys(form.value).map((key: keyof MV) => [
      key,
      ffd[key].rules ?? validByDefault,
    ])
    const formRules: ValidationArgs<MV> = Object.fromEntries(validations)
    rules.value = { global: { true: () => true }, form: formRules }
  }
  if (isFunction(fields)) {
    watchImmediate(fields, () => {
      updateRules(toValue(fields))
    })
  } else {
    watchImmediate(
      Object.keys(form.value).map((key: keyof MV) => () => fields[key].rules),
      () => updateRules(fields),
    )
  }

  const v: Ref<FormValidation<MV>> = useVuelidate(
    rules,
    { form, global: null },
    { $externalResults: serverErrors },
  )

  function onErrorFn(err: APIError, errorMessage?: string) {
    if (!(err instanceof APIBadRequestError)) throw err
    if (errorMessage || !err.data.name) {
      serverErrors.global = [errorMessage || err.message]
    } else {
      deepSetErrors(
        serverErrors,
        [err.message],
        'form',
        ...err.data.name.split('.'),
      )
    }
  }

  function onSubmit(
    fn: (onError: typeof onErrorFn, serverErrors: ServerErrors) => void,
  ) {
    // FIXME add option to ask confirmation (with param text confirm)
    return async (e: SubmitEvent) => {
      e.preventDefault()
      // Password managers may fill inputs without firing input events
      const formEl = e.target as HTMLFormElement
      for (const key of Object.keys(form.value) as (keyof MV)[]) {
        const el = formEl.elements.namedItem(key as string)
        if (
          el instanceof HTMLInputElement &&
          (el.type == 'text' || el.type == 'password' || el.type == 'email') &&
          el.value &&
          !form.value[key]
        ) {
          form.value[key] = el.value as MV[keyof MV]
        }
      }
      if (!(await v.value.form.$validate())) return
      fn(onErrorFn, serverErrors)
    }
  }

  provide(clearServerErrorsSymbol, (key?: string) => {
    const keys = key?.split('.')
    if (keys?.length) {
      deepSetErrors(serverErrors, [], ...keys)
    }
  })

  return {
    v,
    serverErrors,
    onSubmit,
  }
}
```

[app/src/composables/form.ts](https://github.com/YunoHost/yunohost-admin/blob/f0e88f0b7232dbd26aa3c58a3e5bc346d31eaba0/app/src/composables/form.ts#L60-L146) · [More projects using Vuelidate →](https://dashboard.exa.ai/playground/search?q=Vue%20TypeScript%20applications%20using%20%40vuelidate/core%20for%20reactive%20forms%2C%20validation%2C%20server%20errors%20and%20custom%20input%20integration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
<script setup>
import { reactive } from 'vue';
import useVuelidate from '@vuelidate/core';
const state = reactive({ name: '' });
const rules = { name: { required: value => Boolean(value) } };
const validation = useVuelidate(rules, state);
async function submit() {
  console.log(await validation.value.$validate());
}
</script>
<template>
  <form @submit.prevent="submit">
    <input v-model="state.name" /><button type="submit">Validate</button>
  </form>
</template>

```

From [README.md](https://cdn.jsdelivr.net/npm/@vuelidate/core@2.0.3/index.d.ts)

### Quasar

[GitHub](https://github.com/quasarframework/quasar) · [npm](https://www.npmjs.com/package/quasar) · [Docs](https://quasar.dev/vue-components/form/)

Provides accessible cross-platform Vue.js components for SPA, PWA, SSR, SSG, mobile, and desktop apps.

- Downloads / mo: 2.0M
- Last release: 2.35.5
- License: MIT
- Capabilities: [From the Quasar docs](https://quasar.dev/vue-components/form/)

```sh
npm install quasar@2.35.5 vue
```

**Quickstart**

```vue
<script setup>
import { ref } from 'vue';
import { QForm, QInput, QBtn } from 'quasar';
const name = ref('');
function submit() { console.log(name.value); }
</script>
<template>
  <QForm @submit="submit">
    <QInput v-model="name" :rules="[v => Boolean(v) || 'Required']" />
    <QBtn type="submit" label="Validate" />
  </QForm>
</template>

```

From [QForm.json](https://unpkg.com/quasar@2.35.5/dist/api/QForm.json) · [Find projects using Quasar →](https://dashboard.exa.ai/playground/search?q=quasar%20GitHub%20projects)

### Ant Design Vue

[GitHub](https://github.com/vueComponent/ant-design-vue) · [npm](https://www.npmjs.com/package/ant-design-vue) · [Docs](https://antdv.com/components/form)

Implements the Ant Design enterprise-class design language in Vue.

- Downloads / mo: 909.8K
- Last release: 4.2.6
- License: MIT
- Capabilities: [From the Ant Design Vue docs](https://antdv.com/components/form)

```sh
npm install ant-design-vue@4.2.6 vue
```

**Quickstart**

```vue
<script setup>
import { reactive } from 'vue';
import { Form, FormItem, Input } from 'ant-design-vue';
const model = reactive({ name: '' });
const rules = { name: [{ required: true, message: 'Required' }] };
function finish(values) { console.log(values); }
</script>
<template>
  <Form :model="model" :rules="rules" @finish="finish">
    <FormItem name="name"><Input v-model:value="model.name" /></FormItem>
    <button type="submit">Validate</button>
  </Form>
</template>

```

From [index.en-US.md](https://raw.githubusercontent.com/vueComponent/ant-design-vue/4.2.6/components/form/index.en-US.md) · [Find projects using Ant Design Vue →](https://dashboard.exa.ai/playground/search?q=ant-design-vue%20GitHub%20projects)

### PrimeVue Forms

[GitHub](https://github.com/primefaces/primevue-nextchapter) · [npm](https://www.npmjs.com/package/@primevue/forms) · [Docs](https://primevue.dev/forms/)

Form state management and validation for PrimeVue.

- Downloads / mo: 805.9K
- Last release: 5.0.5
- License: PrimeUI License
- Capabilities: [From the PrimeVue Forms docs](https://primevue.dev/forms/)

```sh
npm install @primevue/forms@5.0.5 vue
```

**Quickstart**

```vue
<script setup>
import { Form, FormField } from '@primevue/forms';
function submit({ values }) { console.log(values); }
</script>
<template>
  <Form :initialValues="{ email: '' }" @submit="submit">
    <FormField name="email" v-slot="field">
      <input type="email" v-bind="field.props" />
    </FormField>
    <button type="submit">Submit</button>
  </Form>
</template>

```

From [index.d.ts](https://cdn.jsdelivr.net/npm/@primevue/forms@5.0.5/form/index.d.ts) · [Find projects using PrimeVue Forms →](https://dashboard.exa.ai/playground/search?q=%40primevue/forms%20GitHub%20projects)

### naive-ui

[GitHub](https://github.com/https://github.com/tusen-ai/naive-ui) · [npm](https://www.npmjs.com/package/naive-ui) · [Docs](https://www.naiveui.com/en-US/os-theme/components/form)

Provides a theme-customizable Vue component library written in TypeScript.

- Downloads / mo: 792.8K
- Last release: 2.45.3
- License: MIT
- Capabilities: [From the naive-ui docs](https://www.naiveui.com/en-US/os-theme/components/form)

```sh
npm install naive-ui@2.45.3 vue
```

**Quickstart**

```vue
<script setup>
import { reactive, ref } from 'vue';
import { NForm, NFormItem } from 'naive-ui';
const form = ref();
const model = reactive({ name: '' });
const rules = { name: { required: true, message: 'Required' } };
function submit() {
  form.value.validate(errors => { if (!errors) console.log(model.name); });
}
</script>
<template>
  <NForm ref="form" :model="model" :rules="rules">
    <NFormItem path="name"><input v-model="model.name" /></NFormItem>
    <button type="button" @click="submit">Validate</button>
  </NForm>
</template>

```

From [index.demo-entry.md](https://raw.githubusercontent.com/tusen-ai/naive-ui/main/src/form/demos/enUS/index.demo-entry.md) · [Find projects using naive-ui →](https://dashboard.exa.ai/playground/search?q=naive-ui%20GitHub%20projects)

## FAQ

### Which Vue form library should I use?

[vee-validate](#veevalidate) suits forms that manage values, field bindings, and validation independent of the UI. [Vuelidate](#vuelidate) suits validation added to existing reactive models. [PrimeVue Forms](#primevue-forms) suits apps built on PrimeVue.

### What is VeeValidate?

[vee-validate](#veevalidate) manages Vue form values, field bindings, and validation without prescribing the UI. Zod and Valibot schemas need a matching adapter package.

### Is Vuelidate still maintained?

[Vuelidate](#vuelidate) receives long-term maintenance. Teams starting a new validation layer can compare it with actively developed alternatives.

### How do I show server validation errors in Vue?

[Vuelidate](#vuelidate) passes server messages to the matching fields through $externalResults.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best Vue form libraries VeeValidate Vuelidate FormKit Vueform code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
