Skip to content

Latest commit

 

History

History
executable file
·
44 lines (31 loc) · 690 Bytes

README.md

File metadata and controls

executable file
·
44 lines (31 loc) · 690 Bytes

Sharer popup

A sharer popup manager for the main social networks (Facebook, Twitter, Linkedin)

Installation

npm i sharer-popup --save

Params

share(type, title = "", text = "", source = null, url = null)

type

Social network, can be one of the following:

  • "facebook"
  • "twitter"
  • "linkedin"

title

Sharer title (facebook).

text

Sharer description (facebook, twitter).

source

Sharer source (linkedin).

url

Shared url.

Implementation

JS

import share from 'sharer-popup';

share('facebook'); // opens Facebook sharer
share('twitter'); // opens Twitter sharer
share('linkedin'); // opens Linkedin sharer