SaraVieira / React Social Sharing
Licence: mit
React Implementation of @mxstbr https://sharingbuttons.io
Stars: ✭ 160
Programming Languages
javascript
184084 projects - #8 most used programming language
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
- Thank you to bebraw for creating react-component-boilerplate
- Thank you to mxstbr for creating sharingbuttons.io
- Icons by Streamline.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].