2.0.5 • Published 7 years ago

socialshares v2.0.5

Weekly downloads
96
License
MIT
Repository
github
Last release
7 years ago

⚡️ Quick start

<div id="socialshares"></div>

<script type="module">
  import socialshares, { twitterButton } from '//unpkg.com/socialshares';

  const mountElement = document.getElementById('socialshares');

  socialshares(mountElement, { buttons: [twitterButton()] });
</script>

📦 Install

You can install via npm:

npm install socialshares

Then import with a bundler like Parcel or Webpack:

import socialshares, { twitterButton } from 'socialshares';

const mountElement = document.getElementById('socialshares');

socialshares(mountElement, { buttons: [twitterButton()] });

Make sure to add an empty element to your HTML:

<div id="socialshares"></div>

Done! You should see a Tweet button rendered.

Check out the socialshares docs for more.

💻 Development

  1. Install dependencies: npm install
  2. Launch watcher and demo: npm run dev

🚀 Distributing

  1. npm run build
  2. TODO...

👥 Credits

0.0.0

4 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago