Form validation for Vue in composition functions with Valibot or Zod or Yup.
Installation
Install vue-formor
with your favorite package manager:
sh
npm i vue-formor@4.1.1
sh
yarn add vue-formor@4.1.1
sh
pnpm i vue-formor@4.1.1
sh
bun add vue-formor@4.1.1
Usage
ts
import { useValibotSchema, useZodSchema, useYupSchema } from 'vue-formor';
ts
const { useValibotSchema, useZodSchema, useYupSchema } = require('vue-formor');
TIP
If you intend to use useValibotSchema
, don't forget to install valibot
.
WARNING
If you need to use valibot
v0.31 or later, please install vue-formor
v5.x instead.
TIP
If you intend to use useZodSchema
, don't forget to install zod
.
TIP
If you intend to use useYupSchema
, don't forget to install yup
.