button-component
v1.0.2
Published
Create an extendable customElement button
Downloads
12
Maintainers
Readme
button-component
Create an extendable customElement button.
Installation
$ npm install button-componentUsage
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>