socialbuttons

React component containing Social Media Buttons

Usage no npm install needed!

<script type="module">
  import socialbuttons from 'https://cdn.skypack.dev/socialbuttons';
</script>

README

Social Buttons

This is a React component for displaying social media buttons.

Install:: npm install socialbuttons

Finished Buttons

  • Twitter
    • share

How to use

Import whichever buttons you need::

import {Twitter, Facebook} from 'socialbuttons'

Twitter

    <Twitter type="share" url="http://reactjsnews.com" text="this site is cool"/>

Props:

  • type: share, follow, hashtag, mention
  • url: http://example.com
  • text: string
  • handle: legitcode
  • cleanup: true will remove twitter's js when unmounting

Contributing

Feel free to send a PR with another button. Simply create a component under /networks Then add it to buttons.jsx