<instant-button> web component
HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
bower.json
instant-button.html

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