UIButton module for sioux
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
README.md
index.js
package.json
style.css

README.md

Sioux UIButton

npm install sioux-ui-button

Overview

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

Inheriths from:

  • 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!');
});