react-social-share-buttons

1.0.2 • Public • Published

Social media share buttons

Build Status

This library contains lightweight social media share buttons as React components.

Icons

They are dependency free and don't load any external resources. Icons are rendered using <svg> with inserted <path d="...">.

Usage:

import ShareButton from 'react-social-share-buttons'
 
function SomeComponent({}) {
    return (
        <div>
            Hey, share me!
            <ShareButton
                compact
                socialMedia={'facebook'}
                url={"https://xkcd.com/1024/"}
                media={"https://imgs.xkcd.com/comics/error_code.png"}
                text="Sit by a lake"
            />
        </div>
    );
}

Available social media types: facebook, google-plus, twitter, pinterest.

Props

TODO: Describe props, improve readme further

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    15
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    15
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-social-share-buttons

Weekly Downloads

13

Version

1.0.2

License

MIT

Last publish

Collaborators

  • tfiechowski