Social media share buttons for your next React.js, Next.js apps.
- Zero dependencies
- Share buttons for your next React.js & Next.js app
- Buffer
- Digg
- Facebook Messanger
- FlipboardShare
- GAB
- HackerNews
- Instapaper
- Line
- LiveJournal
- Refind
- Skype
- Telegram
- Threads
- Trello
- Tumblr
- VK
- Yummly
to View Demo, please Click here
dv-social-share is available on npm. It can be installed with the either following command:
npm install dv-social-share --save
or
yarn add dv-social-share --save
import { BufferShareBtn } from 'dv-social-share'
<BufferShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | the Title to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { DiggShareBtn } from 'dv-social-share'
<DiggShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | the Title to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { EmailShareBtn } from 'dv-social-share'
<EmailShareBtn url="https://dv-social-share.vercel.app" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
subject | string | A subject to be shared. | β | |
body | string | Body to be shared. | β | |
separator | string | :: | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { FBMessangerShareBtn } from 'dv-social-share'
<FBMessangerShareBtn url="https://dv-social-share.vercel.app" appId="" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
appId | string | Facebook application id. | β | |
redirectUri | string | The URL to redirect to after sharing (default: the shared url). | β | |
to | string | A user ID of a recipient. Once the dialog comes up, the sender can specify additional people as recipients. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { FBShareBtn } from 'dv-social-share'
<FBShareBtn url="https://dv-social-share.vercel.app" quote="dv-social-share is a social share buttons for your next React.js & Next.js apps." hashTag="#dvsocialshare" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
quote | string | A quote to be shared. | β | |
hashTag | string | Hashtag to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { FlipboardShareBtn } from 'dv-social-share'
<FlipboardShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | the Title to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { GABShareBtn } from 'dv-social-share'
<GABShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | Title of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { HackerNewsShareBtn } from 'dv-social-share'
<HackerNewsShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | Title of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { InstapaperShareBtn } from 'dv-social-share'
<InstapaperShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | Title of the shared page. | β | |
description | string | Description to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { LineShareBtn } from 'dv-social-share'
<LineShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | Title of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { LinkedInShareBtn } from 'dv-social-share'
<LinkedInShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | Title of the shared page. | β | |
summary | string | Summary of the shared page. | β | |
source | string | Source of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { LiveJournalShareBtn } from 'dv-social-share'
<LiveJournalShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the page to be shared. | β | |
title | string | the Title to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { PinboardShareBtn } from 'dv-social-share'
<PinboardShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" descriptin="descriptino to be shared" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
title | string | The Title of the Page to be shared. | β | |
description | string | The description to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { PinterestShareBtn } from 'dv-social-share'
<PinterestShareBtn url="https://dv-social-share.vercel.app" media="https://dv-social-share.vercel.app/image.svg" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
media | string | The image URL that will be pinned. | β | |
description | string | The description of the shared media. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { PocketShareBtn } from 'dv-social-share'
<PocketShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
title | string | Title of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { RedditShareBtn } from 'dv-social-share'
<RedditShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
title | string | Title of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { RefindShareBtn } from 'dv-social-share'
<RefindShareBtn url="https://dv-social-share.vercel.app" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { SkypeShareBtn } from 'dv-social-share'
<SkypeShareBtn url="https://dv-social-share.vercel.app" title='Dhaval" />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
title | string | The title to be shared. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { TelegramShareBtn } from 'dv-social-share'
<TelegramShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
title | string | Title of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { TrelloShareBtn } from 'dv-social-share'
<TrelloShareBtn url="https://dv-social-share.vercel.app" desc="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
desc | string | Description of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { ThreadsShareBtn } from 'dv-social-share'
<ThreadsShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the to be page. | β | |
title | string | Description of the shared page. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { TumblrShareBtn } from 'dv-social-share'
<TumblrShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the shared page to be shared. | β | |
title | string | The title of the shared page. | β | |
tags | Array | β | ||
caption | string | The description of the shared page. | β | |
posttype | string | link |
β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { TwitterShareBtn } from 'dv-social-share'
<TwitterShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the shared page to be shared. | β | |
title | string | The title of the shared page. | β | |
via | string | β | ||
hashtags | array | β | ||
related | array | β | ||
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { VKShareBtn } from 'dv-social-share'
<VKShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the shared pageto be shared. | β | |
title | string | The title of the shared page. | β | |
image | string | An absolute link to the image that will be shared. | β | |
noParse | boolean | If true is passed, VK will not retrieve URL information. | β | |
noVkLinks | boolean | If true is passed, there will be no links to the user's profile in the open window. Only for mobile devices. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { WhatsAppShareBtn } from 'dv-social-share'
<WhatsAppShareBtn url="https://dv-social-share.vercel.app" title="dv-social-share is a social share buttons for your next React.js & Next.js apps." />
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the shared page to be shared. | β | |
title | string | The title of the shared page. | β | |
separator | string | β | ||
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
import { YummlyShareBtn } from 'dv-social-share'
<YummlyShareBtn
url="https://dv-social-share.vercel.app"
title="dv-social-share is a social share buttons for your next React.js & Next.js apps."
image='url-of-image'
/>
Props | Type | Default | Description | Required |
---|---|---|---|---|
url | string | The URL of the shared page to be shared. | β | |
title | string | The title of the shared page. | β | |
image | string | The Link of the Image to be shared along. | β | |
openInNewTab | boolean | false | Open share window in a new tab if set to true . |
β |
imgConfig | object | A imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image | β |
If you think any of the dv-social-share
can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this
repository to revisit.
We'd love to have your helping hand on contributions to dv-social-share
by forking and sending a pull request!
Your contributions are welcome.
How to contribute:
- Fork the
dv-social-share
Repo - Create a New Branch from
main
- Push the Code in your branc and
- Open pull request with improvements & more information on it
- Discuss ideas in issues
- Spread the word
- Reach out with any feedback