Documentation

Icon Buttons

Installation

You can install it using yarn add share-button-links-react or npm install share-button-links-react.

To import it inside your components just add:

import { FacebookIcon } from 'share-button-links-react/components/icons';

To import the CSS or SCSS just add: @import 'share-button-links-react/main.css'; or @import 'share-button-links-react/main.scss';.

Note: Most of the svg icons in buttons belong to Bootstrap Icons. and others to Tabler Icons.

Facebook

Usage


  <FacebookIcon
    title="..."
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
titleStringEmptyThe title of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.

Whatsapp

Usage


  <WhatsappIcon
    text="..."
    url="..."
    message="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
url*String#!The url of the button/link to share.
messageStringEmptyHere you can add a message when you share the url to Whatsapp.
isRoundedBooleanfalseAdd little rounded corners.

Telegram

Usage


  <TelegramIcon
    url="..."
    message="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
url*String#!The url of the button/link to share.
messageStringEmptyHere you can add a message when you share the url to Whatsapp.
isRoundedBooleanfalseAdd little rounded corners.

Twitter

Usage


  <TwitterIcon
    title="..."
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
title*StringAdd titkeThe title of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.

LinkedIn

Usage


  <LinkedInIcon
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.

Reddit

Usage


  <RedditIcon
    title="..."
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
title*StringAdd titleThe title of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.

Pinterest

Usage


  <PinterestIcon
    description="..."
    url="..."
    mediaUrl="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
description*StringAdd the descriptionThe description of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
mediaUrl*String#!The image of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
hasIconBooleanfalseAdd the pinterest icon.

Tumblr

Usage


  <TumblrIcon
    title="..."
    content="..."
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
title*StringAdd titleThe title of the button/link.
contentStringAdd your contentThe content of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.

Pocket

Usage


  <PocketIcon
    title="..."
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
titleStringEmptyThe title of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.

Email

Usage


  <EmailIcon
    title="..."
    subject="..."
    content="..."
    url="..."
    isRounded
  />

Props

With * is required.

PropTypeDefaultComment
title*StringAdd titleThe title of the button/link.
subject*StringAdd titleThe subject of the button/link.
content*StringAdd your contentThe content of the button/link.
url*String#!The url of the button/link to share.
toStringemptyThe to (email) of the button/link.
isRoundedBooleanfalseAdd little rounded corners.

Copy

Usage


  <CopyIcon
    isRounded
    hasIcon
    url="..."
  />

Props

With * is required.

Just click the button to copy the URL.

PropTypeDefaultComment
url*StringAdd textThe url of the button/link.
isRoundedBooleanfalseAdd little rounded corners.
hasIconBooleanfalseAdd the copy icon.