<instant-button> web component
HTML
Latest commit 65216d7 Mar 6, 2015 @ondras typo
Permalink
Failed to load latest commit information.
README.md typo Mar 6, 2015
bower.json bower Mar 6, 2015
instant-button.html async load fix Mar 6, 2015

README.md

<instant-button>

Install

bower install instant-button [--save]

Include

<!-- Web Components polyfills -->
<script src="//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.5.2/webcomponents-lite.min.js"></script>

<!-- instant-button custom element -->
<link rel="import" href="bower_components/instant-button/instant-button.html" />

Use

<!-- random color -->
<instant-button></instant-button>
<instant-button color="random"></instant-button>

<!-- specified color -->
<instant-button color="#faf"></instant-button>
<instant-button color="gold"></instant-button>

<!-- sound file url -->
<instant-button src="sound.ogg"></instant-button>

<!-- multiple formats, pick the best one -->
<instant-button src="sound.{ogg,mp3}"></instant-button>

Example

http://ondras.github.io/instant-button/

Awesome!

Built with love (and caribbean rum) by Ondřej Žára