@vee-validate/nuxt

Official vee-validate nuxt module
3,055,027 11,259
Install
npm install @vee-validate/nuxt
Latest Version:4.15.1
Vue:3
License:MIT
Last Updated:Mar 4, 2026
Links: GitHub  ·  npm
Maintainer: logaretm

@vee-validate/nuxt

Official vee-validate Nuxt module

Official vee-validate's Nuxt module

Features

  • Auto import of vee-validate components
  • Auto import of vee-validate composables
  • Detecting if you are using zod or yup and exposing the toTypedSchema suitable for either.

Getting Started

In your nuxt project install the vee-validate nuxt module:

# npm
npm i @vee-validate/nuxt

# pnpm
pnpm add @vee-validate/nuxt

# yarn
yarn add @vee-validate/nuxt

Then add the module to your modules config in nuxt.config.ts:

export default defineNuxtConfig({
  // ...
  modules: [
    //...
    '@vee-validate/nuxt',
  ],
});

Types

No types are exposed by default to avoid having conflicts with other libraries, aside from vee-validate's main API components/composables. You can still import them via vee-validate.

Configuration

You can configure a few aspects of the @vee-validate/nuxt module. Here is the config interface:

export default defineNuxtConfig({
  // ...
  modules: [
    //...
    [
      '@vee-validate/nuxt',
      {
        // disable or enable auto imports
        autoImports: true,
        // Use different names for components
        componentNames: {
          Form: 'VeeForm',
          Field: 'VeeField',
          FieldArray: 'VeeFieldArray',
          ErrorMessage: 'VeeErrorMessage',
        },
      },
    ],
  ],
});

You can also use the veeValidate config key instead of the array syntax:

export default defineNuxtConfig({
  // ...
  modules: [
    //...
    '@vee-validate/nuxt',
  ],
  veeValidate: {
    // disable or enable auto imports
    autoImports: true,
    // Use different names for components
    componentNames: {
      Form: 'VeeForm',
      Field: 'VeeField',
      FieldArray: 'VeeFieldArray',
      ErrorMessage: 'VeeErrorMessage',
    },
  },
});

Related Packages

vee-validate

Painless forms for Vue.js

45,982,707 11,260
@vee-validate/zod

vee-validate integration with zod schema validation

13,782,300 11,260
@vee-validate/rules

Form Validation for Vue.js

9,053,946 11,260
@vee-validate/yup

vee-validate integration with yup schema validation

3,409,323 11,260
@vee-validate/valibot

vee-validate integration with valibot schema validation

511,682 11,260

Version History

Version Released License
4.15.1 MIT
4.15.0 MIT
4.14.7 MIT
4.14.6 MIT
4.14.5 MIT
Pre-releases (4)
Version Released License
5.0.0-beta.1 MIT
5.0.0-beta.0 MIT
4.12.0-alpha.1 MIT
4.12.0-alpha.0 MIT