0.0.4 • Published 8 years ago

h-buttons v0.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

h buttons

Buttons made with a hyperscript style renderer and csjs.

demo

http://demos.nichoth.com/h-buttons

example

var h = require('bel').createElement
var buttonStyle = require('../index.csjs')
var csjs = require('csjs')

var style = csjs`
  .my-button extends ${buttonStyle['h-button-delete']} {
    width: 2em;
    height: 2em;
  }
`

function renderButton() {
  return h('button', {
    className: style['my-button'],
    onclick: console.log.bind(console, 'delete')
  }, [])
}

document.body.appendChild(renderButton())
0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago