npm.io
0.6.0 • Published 5 years ago

social-button

Licence
MIT
Version
0.6.0
Deps
0
Size
30 kB
Vulns
0
Weekly
0
Stars
17
DeprecatedThis package is deprecated

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