dv-social-share
π Features
β Install
π‘ Usage
BufferShare
π¨βπ» Code
import { BufferShareBtn } from "dv-social-share";
<BufferShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" />;
π BufferShareBtn Props
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 . |
β |
DiggShare
π¨βπ» Code
import { DiggShareBtn } from "dv-social-share";
<DiggShareBtn url="https://dv-social-share.vercel.app" title="Dhaval Vira" />;
π DiggShareBtn Props
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 . |
β |
EmailShare
π¨βπ» Code
import { EmailShareBtn } from "dv-social-share";
<EmailShareBtn url="https://dv-social-share.vercel.app" />;
π EmailShareBtn Props
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 . |
β |
FBMessangerShare
π¨βπ» Code
import { FBMessangerShareBtn } from "dv-social-share";
<FBMessangerShareBtn url="https://dv-social-share.vercel.app" appId="" />;
π FBMessangerShareBtn Props
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 . |
β |
FBShare
π¨βπ» Code
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"
/>;
π FBShareBtn Props
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 . |
β |
FlipboardShare
π¨βπ» Code
import { FlipboardShareBtn } from "dv-social-share";
<FlipboardShareBtn
url="https://dv-social-share.vercel.app"
title="Dhaval Vira"
/>;
π FlipboardShareBtn Props
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 . |
β |
GABShare
π¨βπ» Code
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."
/>;
π GABShareBtn Props
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 . |
β |
HackerNewsShare
π¨βπ» Code
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."
/>;
π HackerNewsShareBtn Props
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 . |
β |
InstapaperShare
π¨βπ» Code
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."
/>;
π InstapaperShareBtn Props
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 . |
β |
LineShare
π¨βπ» Code
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."
/>;
π LineShareBtn Props
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 . |
β |
LinkedInShare
π¨βπ» Code
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."
/>;
π LinkedInShareBtn Props
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 . |
β |
LiveJournalShare
π¨βπ» Code
import { LiveJournalShareBtn } from "dv-social-share";
<LiveJournalShareBtn
url="https://dv-social-share.vercel.app"
title="Dhaval Vira"
/>;
π LiveJournalShareBtn Props
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 . |
β |
PinboardShare
π¨βπ» Code
import { PinboardShareBtn } from "dv-social-share";
<PinboardShareBtn
url="https://dv-social-share.vercel.app"
title="Dhaval Vira"
descriptin="descriptino to be shared"
/>;
π PinboardShareBtn Props
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 . |
β |
PinterestShare
π¨βπ» Code
import { PinterestShareBtn } from "dv-social-share";
<PinterestShareBtn
url="https://dv-social-share.vercel.app"
media="https://dv-social-share.vercel.app/image.svg"
/>;
π PinterestShareBtn Props
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 . |
β |
PocketShare
π¨βπ» Code
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."
/>;
π PocketShareBtn Props
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 . |
β |
RedditShare
π¨βπ» Code
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."
/>;
π RedditShareBtn Props
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 . |
β |
RefindShare
π¨βπ» Code
import { RefindShareBtn } from "dv-social-share";
<RefindShareBtn url="https://dv-social-share.vercel.app" />;
π RefindShareBtn Props
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 . |
β |
TelegramShare
π¨βπ» Code
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."
/>;
π TelegramShareBtn Props
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 . |
β |
TumblrShare
π¨βπ» Code
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."
/>;
π TumblrShareBtn Props
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 . |
β |
TwitterShare
π¨βπ» Code
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."
/>;
π TwitterShareBtn Props
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 . |
β |
VKShare
π¨βπ» Code
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."
/>;
π VKShareBtn Props
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 . |
β |
WhatsAppShare
π¨βπ» Code
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."
/>;
π WhatsAppShareBtn Props
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 . |
β |
π Wrap Up
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.
π Contribution
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
βοΈ License
The MIT License
GitHub
View Github