Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-custom-share

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-custom-share - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

2

package.json
{
"name": "react-custom-share",
"version": "0.0.16",
"version": "0.0.17",
"description": "Social sharing buttons for React",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# react-custom-share
Social media share buttons for ReactJS. Use one of the built-in button themes or create a custom one from scratch.
[![npm packgage][npm version]][nv]

@@ -15,6 +17,16 @@ [![npm][npm downloads]][nd]

Social media share buttons for ReactJS. Use one of the built-in button themes or create a custom one from scratch.
![react-custom-share](./static/react-custom-share.gif)
> ### [DEMO](https://greglobinski.github.io/react-custom-share/)
## Table of Content
* [Features](#features)
* [Roadmap](#roadmap)
* [Installation](#installation)
* [Usage](#usage)
* [Demo](#demo)
* [API](#api)
* [License](#license)
## Features

@@ -92,3 +104,3 @@

const shareBlockProps = {
url: 'https://github.com/greglobinski/react-custom-share',
url: 'https://mywebsite.com/page-to-share/',
button: ShareButtonRectangle,

@@ -100,12 +112,7 @@ buttons: [

{ network: 'Email', icon: FaEnvelope },
{
network: 'Pinterest',
icon: FaPinterest,
media:
'https://raw.githubusercontent.com/greglobinski/react-custom-share/master/static/react-custom-share.gif',
},
{ network: 'Pinterest', icon: FaPinterest, media: 'https://mywebsite.com/image-to-share.jpg' },
{ network: 'Linkedin', icon: FaLinkedin },
],
text: `Give it a try - react-custom-share component`,
longtext: `Social sharing buttons for React. Use one of the build-in themes or create a custom one from the scratch.`,
text: `Give it a try - mywebsite.com `,
longtext: `Take a look at this super website I have just found.`,
};

@@ -151,2 +158,3 @@

ShareBlock,
// styled button components

@@ -158,2 +166,3 @@ ShareButtonRoundSquare,

ShareButtonOutline,
// styled block components

@@ -168,4 +177,3 @@ ShareBlockStandard,

ShareButton.propTypes = {
// required props
/* REQUIRED props */
// network: social network name, one of the list: Twitter, Facebook, GooglePlus, Pinterest, Linkedin or Email

@@ -178,2 +186,3 @@ network: PropTypes.string.isRequired,

/* SPECIAL props */
// media: this is a special 'prop' it's required is network's value is 'Pinterest'

@@ -189,4 +198,3 @@ media: function(props, propName, componentName) {

// optional props
/* OPTIONAL props */
// text: short version of message you want to share with the url

@@ -205,2 +213,4 @@ text: PropTypes.string,

ShareBlock.propTypes = {
/* BUTTON's props */
// props applied to each one of the buttons rendered by the block, explained already above

@@ -213,4 +223,3 @@ url: PropTypes.string.isRequired,

// block's own props
/* BLOCK's own props */
// text to render above the buttons

@@ -217,0 +226,0 @@ header: PropTypes.string,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc