Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
React Hook Form | 35,218 | 127 | 1,337 | 13 hours ago | 951 | September 23, 2022 | 11 | mit | TypeScript | |
📋 React Hooks for form state management and validation (Web + React Native) | ||||||||||
Redux Form | 12,611 | 11,781 | 1,243 | 2 months 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,628 | 490 | 11 days ago | 27 | September 15, 2020 | 171 | mit | Swift | ||
Elegant iOS form builder in Swift | ||||||||||
Vee Validate | 9,821 | 2,190 | 735 | a day ago | 282 | September 19, 2022 | 51 | mit | TypeScript | |
✅ Painless Vue forms | ||||||||||
Formily | 9,637 | 119 | 4 days ago | 209 | September 20, 2022 | 14 | 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,041 | 329 | 41 | 2 months ago | 47 | December 10, 2019 | 70 | mit | JavaScript | |
Validate your forms, frontend, without writing a single line of javascript | ||||||||||
React Final Form | 7,257 | 500 | 384 | 17 days ago | 76 | April 01, 2022 | 390 | mit | JavaScript | |
🏁 High performance subscription-based form state management for React | ||||||||||
Tcomb Form Native | 3,162 | 499 | 18 | 9 months ago | 53 | October 11, 2018 | 128 | mit | JavaScript | |
Forms library for react-native | ||||||||||
Formkit | 2,900 | 13 | a day ago | 144 | September 23, 2022 | 67 | 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 |
Hyperform is your one-stop solution for client-side form handling.
It features a complete implementation of the HTML5 form validation API in JavaScript, replaces the browser’s native methods (if they are even implemented…), and enriches your toolbox with custom events and hooks.
Not pumped yet? Then take a look at our awesome examples.
Get up and running with Hyperform by embedding it from a CDN: CDNJS
<script src="https://cdnjs.cloudflare.com/ajax/libs/hyperform/0.9.5/hyperform.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hyperform/0.9.5/hyperform.min.css">
or unpkg.com:
<script src="https://unpkg.com/hyperform"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/hyperform.css">
The easiest way is installing via npm
:
npm install hyperform
or you can use Bower:
bower install hyperform
or download the current version as ZIP archive.
Then embed dist/hyperform.min.js
in your file:
<script src="path/to/hyperform/dist/hyperform.min.js"></script>
or require it in your code:
const hyperform = require('hyperform');
In old browsers you will need polyfills for the following features:
WeakMap
(IE 10 and lower),
element.classList
(IE 9 and lower),
array.filter
, array.every
, Object.keys
and
Object.defineProperty
(IE 8 and lower). For IE 9+ support simply add this
line to use Polyfill.io’s service:
<script src="https://polyfill.io/v2/polyfill.min.js?features=Element.prototype.classList,WeakMap"></script>
You can let Hyperform take over a single form:
hyperform(document.forms[0]);
or all forms, current and future ones:
hyperform(window);
Configure settings as second argument:
hyperform(window, { revalidate: 'never' });
If you only need a certain feature once, you can access it directly by name:
if (hyperform.willValidate(some_input_element)) {
var is_valid = hyperform.validityState(some_input_element).valid;
}
The full documentation provides you with all the nitty-gritty details and tricks.
You might be wondering, how to get nifty datepickers and range sliders and stuff. Unfortunately, this is out of topic for Hyperform, but despair not! Hyperform UI (beta) is here to fill in the gaps with the help of jQuery UI.
“jQuery UI? Isn’t that that thing that they had before React?” — “No, that’s Backbone.” — “But before that?” — “No, that was Kendo.” — “...?”
If you had these thoughts right now, rest assured. For the purpose of input widgets there is still close to no other library, that is complete, themable, accessible and has wide browser support. Just try it yourself!
Yes, please! The more the better.
The target is 100% support for the HTML5 validation API. Currently supported:
feature | status |
---|---|
willValidate |
🌕 |
setCustomValidity(message) |
🌕 |
validity.valueMissing |
🌕 |
validity.typeMismatch |
🌕 |
validity.patternMismatch |
🌕 |
validity.tooLong |
🌕 |
validity.tooShort |
🌕 |
validity.rangeUnderflow |
🌕 |
validity.rangeOverflow |
🌕 |
validity.stepMismatch |
🌕 |
validity.badInput |
🌕 |
validity.customError |
🌕 |
validity.valid |
🌕 |
checkValidity() |
🌕 |
reportValidity() |
🌕 |
validationMessage |
🌕 |
valueAsDate |
🌕 |
valueAsNumber |
🌕 |
valueLow / valueHigh
|
🌑 |
stepUp(n) / stepDown(n)
|
🌕 |
accept attribute |
🌕 |
support for novalidate
|
🌕 |
Hyperform is fully tested and supported in
WeakMap
for IE
≤ 10 and classList
for IE 9 are polyfilledCool, yes! Head over to the contributing guide for details.
We maintain an up-to date changelog named CHANGELOG.md
alongside this file.
This library is released under the terms of the MIT license.
Hyperform is developed by Manuel Strehl with contributions by Andrey Volynkin, Daniel Wang, Darlan Mendonça, Christoph Dörfel, Josh Farneman, Casey Corcoran, and many people reporting issues.