1.0.2 • Published 9 years ago

button-component v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

button-component

NPM version build status Test coverage Downloads js-standard-style

Create an extendable customElement button.

Installation

$ npm install button-component

Usage

require('webcomponents.js')

document.registerElement('custom-button', require('button-component'))

const customButton = document.createElement('button', 'custom-button')
document.body.appendChild(customButton)
// => <button is="custom-button"></custom-button>

License

MIT