Email input component for virtual-dom
$ npm install --save email-input
var EmailInput = require('email-input')
var emailInput = EmailInput()
function render (state) {
var vtree = EmailInput.render(state)
//=> use virtual-dom to patch vtree into real DOM
}
emailInput(render)
Create a new email input observable.
Type: object
The initial state of the input.
Type: string
The email address.
Validate the email input state.
Render an email state to a vtree object. options
will be merged with the defaults ({type: 'email', name: 'email'}
) and passed to virtual-hyperscript.
MIT © Ben Drucker