social-buttondeprecated

Social Buttons as Web Components.

Usage no npm install needed!

<script type="module">
  import socialButton from 'https://cdn.skypack.dev/social-button';
</script>

README

social-button devDependency Status

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 / mention
  • width
  • height
  • user
  • text
  • hashtag

Facebook Button

<facebook-button></facebook-button>
  • layout standard / box_count
  • width
  • height
  • href URL to like or share.

License

MIT © Shogo Sensui