# react-share-follow

> React component for Share and Follow on social networks

Latest version **1.2.0** (published 2024-09-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-share-follow
pnpm add react-share-follow
yarn add react-share-follow
bun add react-share-follow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2024-09-24 |
| First published | 2021-03-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 43.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Tom Söderlund |
| Maintainers | tomsoderlund |

## Links

- npm: https://www.npmjs.com/package/react-share-follow
- Repository: https://github.com/tomsoderlund/react-share-follow
- npm.io page: https://npm.io/package/react-share-follow

## Dependencies (2)

- [react](https://npm.io/package/react.md) 17.0.1
- [react-dom](https://npm.io/package/react-dom.md) 17.0.1

## Recent versions

- 1.2.0 (latest) — 2024-09-24
- 1.1.5 — 2024-09-21
- 1.1.4 — 2022-05-26
- 1.1.3 — 2022-05-05
- 1.1.2 — 2022-05-05
- 1.1.1 — 2022-05-05
- 1.1.0 — 2021-03-27
- 1.0.0 — 2021-03-27

## README

# React Social Share & Follow

**A beautiful React component for Share and Follow on social networks**

## Example

![Example use of react-share-follow](docs/demo.png)

## Installation

    yarn add react-share-follow  # or: npm install react-share-follow

## Syntax

    import { SocialShareAndFollow } from 'react-share-follow'
    import 'react-share-follow/dist/SocialShareAndFollow.css'
    
    <SocialShareAndFollow
      url='https://www.mysite.com/'
      title='My title'
      description='My description'
      labelShare='Share this article'
      labelFollow='Follow me for more cool stuff'
      iconColor='black'
      buttonColor='lightgray'
      share={{
        copy: true,
        email: true,
        sms: true,
        facebook: true,
        linkedin: true,
        pinterest: true,
        reddit: true,
        threads: true,
        twitter: true
      }}
      follow={{
        email: () => window.prompt('Customize this action to collect email'),
        web: 'https://www.tomsoderlund.com/',
        instagram: 'tomsoderlund',
        linkedin: 'in/tomsoderlund',
        threads: 'tomsoderlund',
        tiktok: 'tomsoderlund',
        twitter: 'tomsoderlund'
      }}
      onShare={({ message }) => window.alert(message)}
    />

## How to build and publish a new NPM package

    yarn publish  # yarn prepare (Babel) will be run automatically

---
_Source: https://npm.io/package/react-share-follow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
