An open API service indexing awesome lists of open source software.

https://github.com/zyszys/react-sharing

:earth_asia: Simple react social media sharing.
https://github.com/zyszys/react-sharing

react react-component share social-media social-share

Last synced: about 1 month ago
JSON representation

:earth_asia: Simple react social media sharing.

Awesome Lists containing this project

README

        

# react-sharing
[![NPM version](https://img.shields.io/npm/v/react-sharing.svg?style=flat)](https://npmjs.org/package/react-sharing)
[![Travis CI](https://travis-ci.com/ZYSzys/react-sharing.svg?token=hDbx4fFbLLvMJQybMquv&branch=master)](https://travis-ci.com/ZYSzys/react-sharing)
[![NPM downloads](http://img.shields.io/npm/dm/react-sharing.svg?style=flat)](https://npmjs.org/package/react-sharing)
[![NPM downloads](http://img.shields.io/npm/dt/react-sharing.svg?style=flat)](https://npmjs.org/package/react-sharing)
[![David Status](https://img.shields.io/david/ZYSzys/react-sharing.svg?style=flat)](https://github.com/ZYSzys/react-sharing/network/dependencies)
[![license](https://img.shields.io/github/license/ZYSzys/react-sharing.svg)](https://github.com/ZYSzys/react-sharing/blob/master/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

> Simple react social media sharing.

![](/screenshot.png)

## Install

```sh
# use yarn
yarn add react-sharing

# or use npm
npm install react-sharing
```

## Usage

```js
import Sharing from 'react-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

- [share.js](https://github.com/overtrue/share.js)
- [react-share-buttons](https://github.com/DawnyWu/react-share-buttons)

## License

MIT.