Vue Formor
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
npm i vue-formor
sh
yarn add vue-formor
yarn add vue-formor
sh
pnpm i vue-formor
pnpm i vue-formor
sh
bun add vue-formor
bun add vue-formor
Usage
ts
import { useValibotSchema, useZodSchema, useYupSchema } from 'vue-formor';
import { useValibotSchema, useZodSchema, useYupSchema } from 'vue-formor';
ts
const { useValibotSchema, useZodSchema, useYupSchema } = require('vue-formor');
const { useValibotSchema, useZodSchema, useYupSchema } = require('vue-formor');
TIP
If you intend to use useValibotSchema
, don't forget to install valibot
.
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
.