3.3.0 • Published 4 years ago

react-social-sharing v3.3.0

Weekly downloads
2,314
License
MIT
Repository
github
Last release
4 years ago

build status dependencies Status codecov npm

React Sharing Buttons

React Implementation of @mxstbr sharingbuttons.io No Extra Javascript Imports. No Tracking. Just Links, SVG and CSS

Basic Usage

yarn add react-social-sharing
import React from 'react'
import { Twitter } from 'react-social-sharing'

export default () => <Twitter link="https://github.com" />

Localization

To any button for localization of the aria-label you can pass a function like so:

<Twitter
  link="https://github.com"
  label={serviceName => localise('share_label', { serviceName })}
/>

This function receives the name of the service and the return value is the aria-label and title used in the anchor.

This name is automatically filled by the package but you can override this with the name prop.

License

react-social-sharing is available under MIT. See LICENSE for more details.

Acknowledgements

3.3.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.5.0

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago