README
social-button
Social Buttons as Web Components.
Install
Using npm:
$ npm install social-button
Usage
Import and register scripts.
<script type="module">
import { TwitterButton, FacebookButton } from 'https://unpkg.com/social-button';
customElements.define('twitter-button', TwitterButton);
customElements.define('facebook-button', FacebookButton);
</script>
Twitter Button
<twitter-button></twitter-button>
type
follow / share / hashtag / mentionwidth
height
user
text
hashtag
Facebook Button
<facebook-button></facebook-button>
layout
standard / box_countwidth
height
href
URL to like or share.