You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,7 +31,7 @@ Official vee-validate's Nuxt module
31
31
- Auto import of vee-validate composables
32
32
- Detecting if you are using `zod` or `yup` and exposing the `toTypedSchema` suitable for either.
33
33
34
-
<DocTiptype="warning">
34
+
<DocTiptype="warn">
35
35
36
36
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`.
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`.
59
+
60
+
## Configuration
61
+
62
+
You can configure a few aspects of the `@vee-validate/nuxt` module. Here is the config interface:
63
+
64
+
```ts
65
+
exportdefaultdefineNuxtConfig({
66
+
// ...
67
+
modules: [
68
+
//...
69
+
[
70
+
'@vee-validate/nuxt',
71
+
{
72
+
// disable or enable auto imports
73
+
autoImports: true,
74
+
// Use different names for components
75
+
componentNames: {
76
+
Form: 'VeeForm',
77
+
Field: 'VeeField',
78
+
FieldArray: 'VeeFieldArray',
79
+
ErrorMessage: 'VeeErrorMessage',
80
+
},
81
+
},
82
+
],
83
+
],
84
+
});
85
+
```
86
+
87
+
You can also use the `veeValidate` config key instead of the array syntax:
0 commit comments