vdom-kv-form

0.0.8 • Public • Published

vdom kv form

demo

List of keys and values, easily editable with keyboard navigation. It's made with virtual-dom and compatible with mercury component interface.

install

$ npm install vdom-kv-form

example

var vdom = require('virtual-dom');
var h = vdom.h;
var Form = require('vdom-kv-form');
 
var state = Form({
  rows: [
    {
      field: 'my field',
      value: 'my value'
    }
  ]
});
 
var loop = require('main-loop')( state(), Form.render, vdom );
state(loop.update);
document.getElementById('content').appendChild(loop.target);

Package Sidebar

Install

npm i vdom-kv-form

Weekly Downloads

3

Version

0.0.8

License

ISC

Last publish

Collaborators

  • nichoth