Package Exports
- vdom-form
- vdom-form/Form
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vdom-form) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vdom form
Form component for mercury / virtual-dom
todo
- different types of fields
- validation functions
install
$ npm install vdom-formexample
var vdom = require('virtual-dom');
var h = vdom.h;
var Form = require('vdom-form');
var state = Form({
fields: ['title', 'author'],
});
var loop = require('main-loop')( state(), Form.render, vdom );
state(loop.update);
document.getElementById('content').appendChild(loop.target);