@saulmaldonado/share-this-page
v1.3.0
Published
Share the current page to social media with a zero-configuration drop-in React component
Downloads
1
Readme
Welcome to Share This Page
Share the current page to social media with a zero-configuration drop in react component
Live Example
Install
npm install @saulmaldonado/share-this-page
or
yarn add @saulmaldonado/share-this-page
Usage
Props
Links to all sites are generated by default. To explicitly generate links, enable the sites certain through props
types Props {
twitter?: true;
facebook?: true;
pinterest?: true;
facebookMessenger?: true;
linkedin?: true;
reddit?: true;
};
import React, { Component } from 'react';
import ShareButton from 'share-button';
import 'share-button/dist/index.css';
class Example extends Component {
render() {
return <ShareButton />;
}
}
License
MIT © saulmaldonado