tcomb-form.js

React.js powered UI library for
developing forms writing less code.

"Simplicity is the ultimate sophistication"
(Leonardo da Vinci)

Domain Driven Forms

The tcomb library provides a concise but expressive way to define domain models in JavaScript.

The tcomb-validation library builds on tcomb, providing validation functions for tcomb domain models.

This library builds on those two and realizes an old dream of mine.

Benefits

With tcomb-form you simply call:

<Form type={Model} />

to generate a form based on that domain model. What does this get you?

  • Write a lot less HTML
  • Usability and accessibility for free (automatic labels, inline validation, etc)
  • No need to update forms when domain model changes

Flexibility

tcomb-form lets you override automatic features or add additional information to forms.

Customizable look and feel. Bootstrap 3.3 and Semantic UI 1.12.3 are supported out of the box.