Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

[FormBuilder] Support more validators #5

@MangelMaxime

Description

@MangelMaxime

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions