1.0.16 • Published 7 years ago

react-social-bar v1.0.16

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Build Status codecov


react-social-demo

Install

Yarn: yarn add react-social-bar

Npm: npm install react-social-bar

Get Started

This project was bootstrapped using create-react-app and react-storybook

The easiest way to get started is to clone this repo and run yarn start

Adding react-social-bar to your app

Once react-social-bar is installed. Import it into your file
`import SocialBar from 'react-social-bar';

  return (
    <SocialBar config={ configObj } />
  );

Configuration Options

Options

  const configObj = {
    description: string (required),
    domain: string (required),
    handleClick: function (required),
    hideBelowWidth: number (optional),
    mediaUrl: string (optional),
    productName: string (required),
    twitterHandle: string (optional)
  }

Example Options

  const configObj = {
    description: 'NameSquash: An easy way to name your next side project or business',
    domain: 'https://namesquash.com',
    handleClick: (social) => console.log('clicked:', social),
    hideBelowWidth: 1038,
    mediaUrl: 'https://namesquash.com/images/namesquashapp.png',
    productName: 'NameSquash',
    twitterHandle: 'namesquash'
  }
1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago