The awesome-button Vanilla JS custom element web component is a cool option to quickly add share buttons (or any kind of buttons) to your projects.
- Load the WebComponents polyfill:
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.3/webcomponents.min.js"></script>
- Import the Awesome-Button:
<link rel="import" href="/awesome-button.html">
- Use it:
<awesome-button type="facebook" sharer>Share it!</awesome-button>
Install the component using Bower:
$ bower install awesome-button --save
Copyright 2015 Rafael Caferati