This package has been deprecated

Author message:

Please use twitter-button or facebook-button instead.

social-button
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

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

Package Sidebar

Install

npm i social-button

Weekly Downloads

28

Version

0.6.0

License

MIT

Unpacked Size

30.5 kB

Total Files

20

Last publish

Collaborators

  • 1000ch