Socket
Socket
Sign inDemoInstall

ta-react-polymorphic-share-buttons

Package Overview
Dependencies
30
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ta-react-polymorphic-share-buttons

Renders a collection of social sharing buttons, accessing the Newsnet API to get the relevant data of the defined article.


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Polymorphic Sharing Buttons

Renders a collection of social sharing buttons, accessing the Newsnet API to get the relevant data of the defined article.

Installation

yarn add ta-react-polymorphic-share-buttons

Usage

import PolymorphicShareButtons from 'ta-react-polymorphic-share-buttons';

//...

class YourComponent extends React.Component {
  render() {

    return (
      <PolymorphicShareButtons 
          articleID='34511213'
          hashtags={['TAGrafik', 'ddj']}
          displayType='horizontal icons'/>
    )
  }
}

API – 1.0

Props

PropertyTypeRequiredDefaultDescription
articleIDstringyesThe article ID of the link article.
displayTypeOne of 'horizontal icons' or 'vertical buttons'no'vertical buttons'How the links are rendered. Currently supported: Stacked buttons or horizontal icons with share count.
invertedboolnofalseUsed when icon list is displayed on dark backgrounds.
hashtags[string]noArray of strings to be used as hashtags when sharing.

Remarks

Fallback

In case the article with the given ID can't be found, the component will fall back to sensible defaults and still provide sharing buttons.

Display Type

Currently available values:

  • 'horizontal icons'
  • 'vertical buttons'

Keywords

FAQs

Last updated on 23 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc