Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
React Hook Form | 34,079 | 127 | 1,337 | a day ago | 951 | September 23, 2022 | 10 | mit | TypeScript | |
📋 React Hooks for form state management and validation (Web + React Native) | ||||||||||
Redux Form | 12,614 | 11,781 | 1,243 | 3 days ago | 235 | November 17, 2021 | 491 | mit | JavaScript | |
A Higher Order Component using react-redux to keep form state in a Redux store | ||||||||||
Eureka | 11,588 | 490 | 14 days ago | 27 | September 15, 2020 | 170 | mit | Swift | ||
Elegant iOS form builder in Swift | ||||||||||
Vee Validate | 9,634 | 2,190 | 735 | 5 days ago | 282 | September 19, 2022 | 48 | mit | TypeScript | |
✅ Painless Vue forms | ||||||||||
Formily | 9,334 | 119 | 10 days ago | 209 | September 20, 2022 | 11 | mit | TypeScript | ||
📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3 | ||||||||||
Parsley.js | 9,045 | 329 | 41 | 6 months ago | 47 | December 10, 2019 | 69 | mit | JavaScript | |
Validate your forms, frontend, without writing a single line of javascript | ||||||||||
React Final Form | 7,217 | 500 | 384 | a month ago | 76 | April 01, 2022 | 385 | mit | JavaScript | |
🏁 High performance subscription-based form state management for React | ||||||||||
Tcomb Form Native | 3,162 | 499 | 18 | 7 months ago | 53 | October 11, 2018 | 128 | mit | JavaScript | |
Forms library for react-native | ||||||||||
Formkit | 2,633 | 13 | 2 days ago | 144 | September 23, 2022 | 51 | mit | TypeScript | ||
Vue Forms ⚡️ Supercharged | ||||||||||
Formsy React | 2,599 | 2 | 2 years ago | 1 | November 27, 2015 | 149 | mit | JavaScript | ||
A form input builder and validator for React JS |
Vue Form Validation with Composition API
npm install @vorms/core
<script src="https://unpkg.com/@vorms/core"></script>
It will be exposed to global as window.Vorms
setup script
import { useForm } from '@vorms/core'
const sugarOptions = ['no', 'light', 'half', '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
<form @submit="handleSubmit" @reset="handleReset">
<label>Drink</label>
<input v-model="drink" type="text" v-bind="drinkFieldAttrs">
<label>Sugar level</label>
<select v-model="sugar" v-bind="sugarFieldAttrs">
<option v-for="item in sugarOptions" :key="item" :value="item">
{{ item }}
</option>
</select>
<button type="reset">Reset</button>
<button type="submit">Submit</button>
</form>
Refer documentations for more details.
This project is heavily inspired by the following awesome projects.
Thanks to the wonderful people who have already contributed to Vorms!
Made with contrib.rocks.
MIT License 2022-PRESENT Alex Liu