Add contact form validation

This commit is contained in:
Paul Nicoué 2023-01-27 16:12:44 +01:00
parent 2a4cf52465
commit d3465c6ea3
12 changed files with 429 additions and 204 deletions

7
plugins/vee-validate.js Normal file
View file

@ -0,0 +1,7 @@
import { ErrorMessage, Field, Form } from 'vee-validate';
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component('VeeError', ErrorMessage);
nuxtApp.vueApp.component('VeeField', Field);
nuxtApp.vueApp.component('VeeForm', Form);
});