@berlitz/social-share

2.2.0 • Public • Published

Component Name npm version

Installation

yarn add @berlitz/social-share

Props

Argument Type Required Default Description
currentUrl string Yes
callToActionText string No 'Share This'
links array No defaultLinks Array of social media platforms and url
[
  {
    "platform": "Facebook",
    "url": "https://www.facebook.com/sharer/sharer.php?u="
  },
  {
    "platform": "Weibo",
    "url": "https://service.weibo.com/share/share.php?url="
  }
]

Usage

import SocialShare from '@berlitz/social-share'
const MyApp = () => (
  <SocialShare
    currentUrl={`https://www.berlitz.com${url}`}
    callToActionText={'call to action text here'}
    links={socialShareLinks}
  />
)

Readme

Keywords

none

Package Sidebar

Install

npm i @berlitz/social-share

Weekly Downloads

1,303

Version

2.2.0

License

MIT

Unpacked Size

32.3 kB

Total Files

6

Last publish

Collaborators

  • berlitz