1.2.0 • Published 9 months ago

react-share-follow v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

React Social Share & Follow

A beautiful React component for Share and Follow on social networks

Example

Example use of react-share-follow

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
1.2.0

9 months ago

1.1.5

9 months ago

1.1.4

3 years ago

1.1.1

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago