Skip to content
On this page

Buttons

These buttons serve as a convenient way to share links to various social media platforms. Whether you want to share blogs, pages, articles, products, or any other content, these buttons provide an easy-to-use interface for sharing your desired links.


Usage

javascript
import {
  ButtonFacebook,
  ButtonWhatsapp,
  ButtonTelegram,
  ButtonTwitter,
  ButtonLinkedIn,
  ButtonReddit,
  ButtonPinterest,
  ButtonTumblr,
  ButtonPocket,
  ButtonEmail,
  ButtonCopy
} from 'share-button-links/components/buttons';

Facebook

Facebook
html
<ButtonFacebook
  title="..."
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
titleStringEmptyThe title of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the facebook icon.

WhatsApp

Whatsapp
html
<ButtonWhatsapp
  text="..."
  url="..."
  message="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
text*StringAdd textThe text of the button/link.
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.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the whatsapp icon.

Telegram

Telegram
html
<ButtonTelegram
  text="..."
  url="..."
  message="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
text*StringAdd textThe text of the button/link.
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.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the telegram icon.

Twitter

Twitter
html
<ButtonTwitter
  title="..."
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
title*StringAdd titkeThe title of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the twitter icon.

LinkedIn

LinkedIn
html
<ButtonLinkedIn
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the linkedin icon.

Reddit

Reddit
html
<ButtonReddit
  title="..."
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
title*StringAdd titleThe title of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the reddit icon.

Pinterest

Pinterest
html
<ButtonPinterest
  description="..."
  url="..."
  text="..."
  mediaUrl="..."
  isRounded
  hasIcon
/>

Props

Props with * are 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.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the pinterest icon.

Tumblr

Tumblr
html
<ButtonTumblr
  title="..."
  content="..."
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
title*StringAdd titleThe title of the button/link.
contentStringAdd your contentThe content of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the tumblr icon.

Pocket

Pocket
html
<ButtonPocket
  title="..."
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
titleStringEmptyThe title of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the pocket icon.

Email

Email
html
<ButtonEmail
  title="..."
  subject="..."
  content="..."
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
title*StringAdd titleThe title of the button/link.
toStringEmptyThe to (email) of the button/link.
subject*StringAdd titleThe subject of the button/link.
content*StringAdd your contentThe content of the button/link.
text*StringAdd textThe text of the button/link.
url*String#!The url of the button/link to share.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the Email icon.

Copy

html
<ButtonCopy
  text="..."
  url="..."
  isRounded
  hasIcon
/>

Props

Props with * are required.

PropTypeDefaultComment
text*StringAdd textThe text of the button/link.
urlStringEmptyAdd the url if you want.
isRoundedBooleanfalseAdd little rounded corners.
isCircledBooleanfalseAdd full rounded corners.
isBorderedBooleanfalseAdd border to the buttons and remove.
hasIconBooleanfalseAdd the copy icon.