Socket
Socket
Sign inDemoInstall

react-social-sharing

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-social-sharing

React Social Sharing Components ( No extra JS )


Version published
Weekly downloads
458
decreased by-26.01%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 09 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc