<template>
<form>
<Field v-slot="{ ... }">
<FormItem>
<template #label>
<FormLabel />
</template>
<FormControl>
<!-- any Form Input component or native input elements -->
</FormControl>
<template #description>
<FormDescription />
</template>
<template #message>
<FormMessage />
</template>
</FormItem>
</Field>
</form>
</template>
The <Field/>
component is auto-imported by the @vee-validate/nuxt
module. You can change the name of the impported components in your nuxt.config .ts
file. You can visit here for more information.
Click here to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.
npx ui-thing@latest add form