sioux-ui-button

UIButton module for sioux

Sioux UIButton

npm install sioux-ui-button

The UIButton class lets you create buttons with some styling and with touch events.

  • sioux-ui

html:

<button class="foo">Click me!</button>

javascript:

var UIButton = require('sioux-ui-button');
var button = new UIButton(document.querySelector('.foo'));
 
button
.on('tap', function (event) {
  console.log('Tapped!');
});