GithubHelp home page GithubHelp logo

dhavalveera / dv-social-share Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 670 KB

Social media share buttons for your next React.js, Next.js apps.

Home Page: https://dv-social-share.vercel.app/

License: MIT License

JavaScript 0.32% TypeScript 99.68%
social-share social-share-button social-share-buttons social-share-plugin react

dv-social-share's Introduction

dv-social-share


Social media share buttons for your next React.js, Next.js apps.

๐ŸŽ Features


  • Zero dependencies
  • Share buttons for your next React.js & Next.js app
    • Buffer
    • Digg
    • Email
    • Facebook Messanger
    • Facebook
    • FlipboardShare
    • GAB
    • HackerNews
    • Instapaper
    • Line
    • LinkedIn
    • LiveJournal
    • Pinterest
    • Pocket
    • Reddit
    • Refind
    • Skype
    • Telegram
    • Threads
    • Trello
    • Tumblr
    • Twitter
    • VK
    • WhatsApp
    • Yummly

Demo


to View Demo, please Click here


โš™ Install


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

๐Ÿ’ก 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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

SkypeShare

๐Ÿ‘จโ€๐Ÿ’ป Code

import { SkypeShareBtn } from 'dv-social-share'

<SkypeShareBtn url="https://dv-social-share.vercel.app" title='Dhaval" />

๐Ÿ“– SkypeShareBtn Props

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 โŒ

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. โŒ
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 โŒ

TrelloShare

๐Ÿ‘จโ€๐Ÿ’ป Code

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." />

๐Ÿ“– TrelloShareBtn Props

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 โŒ

ThreadsShare

๐Ÿ‘จโ€๐Ÿ’ป Code

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." />

๐Ÿ“– ThreadsShareBtn Props

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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

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. โŒ
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 โŒ

YummlyShare

๐Ÿ‘จโ€๐Ÿ’ป Code

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' 
/>

๐Ÿ“– YummlyShareBtn 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. โŒ
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 โŒ

๐Ÿ’– 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 License: MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.