Skip to content

vue-formor

Form validation for Vue in composition functions with Valibot.

Installation

Install vue-formor with your favorite package manager:

sh
npm i vue-formor
sh
yarn add vue-formor
sh
pnpm i vue-formor
sh
bun add vue-formor

TIP

Don't forget to install valibot.

sh
npm i valibot
sh
yarn add valibot
sh
pnpm i valibot
sh
bun add valibot

Usage

ts
import { useSchema } from 'vue-formor';
import * as v from 'valibot';

WARNING

If you need to use valibot v0.30 or lower, please install vue-formor v4.x instead.

DANGER

For front-end development, it is best to use libraries that support tree shaking and modularization. It is recommended to use valibot. No longer recommend using zod and yup.

The functions useValibotSchema, useZodSchema, and useYupSchema will be removed in v6. Additionally, please use useSchema instead of useValibotSchema.

Released under the MIT License.