Skip to content

ZYSzys/react-sharing

Repository files navigation

react-sharing

NPM version Travis CI NPM downloads NPM downloads David Status license PRs Welcome

Simple react social media sharing.

Install

# use yarn
yarn add react-sharing

# or use npm
npm install react-sharing

Usage

import Sharing from 'react-sharing';

<Sharing
  sites = {[ "qzone", "weibo", "qq", "tencent", "douban" ]}
  url = "https://github.com/ZYSzys/react-sharing"
  title = "react-sharing"
  description = "Simple react social media sharing."
/>

Props

Common props you may want to specify include:

  • url: PropTypes.string
  • title: PropTypes.string
  • description: PropTypes.string
  • sites: PropTypes.array
  • summary: PropTypes.string

Thanks

License

MIT.