0.0.22 • Published 5 years ago

@socialshares/core v0.0.22

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

⚡️ Quick start

<div id="shareButtons"></div>

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

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

  renderShareButtons(mountElement, [twitterButton(), facebookButton()]);
</script>

📦 Install

You can install via npm:

npm install @socialshares/core

Then import with a bundler like Parcel or Webpack:

import {
  renderShareButtons,
  twitterButton,
  facebookButton,
} from '@socialshares/core';

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

renderShareButtons(mountElement, [twitterButton(), facebookButton()]);

Make sure to add an empty element to your HTML:

<div id="shareButtons"></div>

Done! You should see a Tweet button and Facebook button rendered.

Check out the socialshares docs for more.

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.13

5 years ago

0.0.14

5 years ago

0.0.15

5 years ago

0.0.16

5 years ago

0.0.17

5 years ago

0.0.18

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.7

5 years ago

0.0.0

5 years ago