Willmo36 / fp-ts-form

Port of Lumi's Form DSL to fp-ts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fp-ts-form v0.0.2

fp-ts port of Lumi's FormBuilder DSL

Installation

yarn add fp-ts-form

Source material

https://medium.com/fuzzy-sharp/building-a-type-safe-embedded-dsl-for-form-components-with-validation-e7ffaaf537e4

Package status

This package started as a PoC. Upon changing this to a package, a few expected features are missing:

  • Documentation/Comments
  • Tests
  • es6 build

Examples

Firstly, add parcel globally to run the examples; yarn global add parcel-bundler

  • Basic example: parcel examples/basic/index.html
  • Wizard/Monad example: parcel examples/wizard/index.html
  • (Todo) Dynamic inputs example

Do let us know if there are use cases you'd like to see examples of.

About

Port of Lumi's Form DSL to fp-ts

License:MIT License


Languages

Language:TypeScript 100.0%