Package Exports
- h-buttons/lib/delete
- h-buttons/lib/delete.csjs
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 (h-buttons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
h buttons
Buttons made with a hyperscript style renderer and csjs
.
example
var delButton = require('h-buttons/lib/delete')
var h = require('bel').createElement
var csjs = require('csjs')
var style = csjs`
.example extends ${delButton.style} {
width: 2em;
height: 2em;
}
`
var b = delButton(h, {
className: style.example,
onclick: function onClick(ev) {
console.log('delete', ev)
}
}, [])
document.body.appendChild(b)