-
-
Notifications
You must be signed in to change notification settings - Fork 5
[FormBuilder] Support more validators #5
Description
Issue by MangelMaxime
Thursday Nov 29, 2018 at 08:37 GMT
Originally opened as MangelMaxime/Thoth#92
Ideally we would have the most common types of field and they would come with sensible defaults including validation as standard. I was wondering about using validator.js for this:
https://github.com/chriso/validator.js
https://www.npmjs.com/package/@types/validator
Like you know how in html a Form at it's most basic is:
<form>
<input name="name" placeholder="Name" />
<input name="email" placeholder="Email" type="email" />
<input type="submit">
</form>
I wonder if we could make BasicFields (maybe in Fulma?) as close as possible to this sort of simple experience, but of course with all the power of F# and this library behind the simple interface
Apologies this has little to with React, more to do with "optimized experience"
Originally posted by @fergusmeiklejohn in MangelMaxime/Thoth#90 (comment)