vue-formor
vue-formor
Form validation for Vue in composition functions with Valibot or Zod or Yup.
Installation
Install vue-formor
with your favorite package manager:
$ npm i vue-formor
# or
$ yarn add vue-formor
# or
$ pnpm i vue-formor
# or
$ bun add vue-formor
Usage
// esm
import { useValibotSchema, useZodSchema, useYupSchema } from 'vue-formor';
// cjs
const { useValibotSchema, useZodSchema, useYupSchema } = require('vue-formor');
Documentation
To learn more about vue-formor
, check its documentation.
Examples
See ./examples.
Playground
- ValibotForm
- ZodForm
YupForm(The dependencies of Yup do not support ESM)