Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vorms

> 前端框架
Open source

Vue Form Validation with Composition API

720 stars0 likes0 views
WebsiteGitHub

About

Vue Form Validation with Composition API

Vue Form Validation with Composition API

Feature

  • Type Strong: Written in TypeScript, with TSDoc.
  • Lightweight: Only 12kb compressed (4kb compressed + gzip compressed) and fully tree-shaking.
  • Easiest: Vorm uses the Composition API to give you a very seamless development experience.
  • Flexible: Yup, Zod, Valibot and self-def validation are supported.

Install

bash
npm install @vorms/core

CDN

xml

It will be exposed to global as window.Vorms

Usage

setup script

typescript
import { useForm } from '@vorms/core'

const sugarOptions = ['no', 'light', 'half', 'standard']

const { register, handleSubmit, handleReset } = useForm({
  initialValues: {
    drink: '',
    sugar: 'light',
  },
  onSubmit(data) {
    console.log(data)
  }
})

const { value: drink, attrs: drinkFieldAttrs } = register('drink')
const { value: sugar, attrs: sugarFieldAttrs } = register('sugar')

template

xml

  Drink
  

  Sugar level
  
    
      {{ item }}
    
  

  Reset
  Submit

Refer documentations for more details.

Examples

  • Login
  • Field Array
  • Cross Field Validate
  • Wizard Form
  • Custom Components
  • UI Library - Vuetify
  • UI Library - Element Plus
  • Validate With Yup
  • Validate With Zod

Thanks

This project is heavily inspired by the following awesome projects.

  • Formik
  • React Hook Form
  • VeeValidate

Contributors

Thanks to the wonderful people who have already contributed to Vorms!

Made with contrib.rocks.

License

MIT License © 2022-PRESENT Alex Liu

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptcomposition-apiformform-validationforms

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架