Minimalistic, portable, style-able forms for JSON schemas and javascript objects.
- Stand-alone & independent from other libraries like jQuery, Angular or Bootstrap
- Tiny, minimalistic.
- Styleable to fit your UI design
- JSON schema extended with arbitrary controls and types
$ bower install cardboard
<script src="cardboard.js" />
<link href="cardboard.css" ?>
cardboard()
.data({ // implicit schema; inferred from the data
hello: 'world',
foo: 'bar'
})
.draw(document.body)
cardboard()
.data({})
.schema({ // explicit JSON-schema
type: 'object',
properties: {
email: {
type: 'string',
format: 'email'
},
}
})