0.0.2 • Published 7 months ago

dv-ngx-social-share v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

dv-ngx-social-share


Social media share buttons for your next Angular apps.

🎁 Features


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

Alternative


for Reactjs, Nextjs, Click here


⚙ Install


dv-ngx-social-share is available on npm. It can be installed with the either following command:

npm install dv-ngx-social-share --save

or

yarn add dv-ngx-social-share --save

💡 Usage


app.module.ts

// other import lines
import { DvNgxSocialShareModule } from 'dv-ngx-social-share';

@NgModule({
  declarations: [AppComponent],
  imports: [
            // other imports,
            DvNgxSocialShareModule // => you need to add this line in order to use Social Share Buttons
        ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

BufferShare

👨‍💻 Code

<buffer-share-btn url="https://google.com" [openInNewTab]="true" [imgStyle]="{ width: '64px' }"></buffer-share-btn>

📖 BufferShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringthe Title to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

DiggShare

👨‍💻 Code

<digg-share-btn url="https://google.com"></digg-share-btn>

📖 DiggShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringthe Title to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

EmailShare

👨‍💻 Code

<email-share-btn url="https://google.com" [openInNewTab]="true" [imgStyle]="{ width: '64px' }"
  ></email-share-btn>

📖 EmailShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
subjectstringA subject to be shared.
bodystringBody to be shared.
separatorstring::
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

FBMessangerShare

👨‍💻 Code

<fbmessenger-share-btn url="https://google.com"></fbmessenger-share-btn>

📖 FBMessangerShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
appIdstringFacebook application id.
redirectUristringThe URL to redirect to after sharing (default: the shared url).
tostringA user ID of a recipient. Once the dialog comes up, the sender can specify additional people as recipients.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

FBShare

👨‍💻 Code

<fbshare-btn url="https://dv-ngx-social-share.vercel.app" quote="dv-ngx-social-share is a social share buttons for your Angular apps." hashTag="#dvsocialshare"></fbshare-btn>

📖 FBShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
quotestringA quote to be shared.
hashTagstringHashtag to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

FlipboardShare

👨‍💻 Code

<flipboard-share-btn url="https://google.com"></flipboard-share-btn>

📖 FlipboardShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringthe Title to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

GABShare

👨‍💻 Code

<gabshare-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></gabshare-btn>

📖 GABShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringTitle of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

HackerNewsShare

👨‍💻 Code

<hacker-news-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></hacker-news-share-btn>

📖 HackerNewsShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringTitle of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

InstapaperShare

👨‍💻 Code

<instapaper-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></instapaper-share-btn>

📖 InstapaperShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringTitle of the shared page.
descriptionstringDescription to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

LineShare

👨‍💻 Code

<line-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></line-share-btn>

📖 LineShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringTitle of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

LinkedInShare

👨‍💻 Code

<linkedin-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></linkedin-share-btn>

📖 LinkedInShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringTitle of the shared page.
summarystringSummary of the shared page.
sourcestringSource of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

LiveJournalShare

👨‍💻 Code

<live-journal-share-btn url="https://dv-ngx-social-share.vercel.app" title="Dhaval Vira"></live-journal-share-btn>

📖 LiveJournalShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the page to be shared.
titlestringthe Title to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

PinboardShare

👨‍💻 Code

<pinboard-share-btn url="https://dv-ngx-social-share.vercel.app" title="Dhaval Vira" descriptin="descriptino to be shared"></pinboard-share-btn>

📖 PinboardShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
titlestringThe Title of the Page to be shared.
descriptionstringThe description to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

PinterestShare

👨‍💻 Code

<pinterest-share-btn url="https://dv-ngx-social-share.vercel.app" media="https://dv-ngx-social-share.vercel.app/image.svg"></pinterest-share-btn>

📖 PinterestShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
mediastringThe image URL that will be pinned.
descriptionstringThe description of the shared media.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

PocketShare

👨‍💻 Code

<pocket-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></pocket-share-btn>

📖 PocketShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
titlestringTitle of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

RedditShare

👨‍💻 Code

<reddit-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></reddit-share-btn>

📖 RedditShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
titlestringTitle of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

RefindShare

👨‍💻 Code

<refind-share-btn url="https://dv-ngx-social-share.vercel.app"></refind-share-btn>

📖 RefindShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

SkypeShare

👨‍💻 Code

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

📖 SkypeShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
titlestringThe title to be shared.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

TelegramShare

👨‍💻 Code

<telegram-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></telegram-share-btn>

📖 TelegramShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
titlestringTitle of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

TrelloShare

👨‍💻 Code

<trello-share-btn url="https://dv-ngx-social-share.vercel.app" desc="dv-ngx-social-share is a social share buttons for your Angular apps."></trello-share-btn>

📖 TrelloShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the to be page.
descstringDescription of the shared page.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

TumblrShare

👨‍💻 Code

<tumblr-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></tumblr-share-btn>

📖 TumblrShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the shared page to be shared.
titlestringThe title of the shared page.
tagsArray
captionstringThe description of the shared page.
posttypestringlink
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

TwitterShare

👨‍💻 Code

<twitter-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></twitter-share-btn>

📖 TwitterShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the shared page to be shared.
titlestringThe title of the shared page.
viastring
hashtagsarray
relatedarray
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

VKShare

👨‍💻 Code

<vkshare-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></vkshare-btn>

📖 VKShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the shared pageto be shared.
titlestringThe title of the shared page.
imagestringAn absolute link to the image that will be shared.
noParsebooleanIf true is passed, VK will not retrieve URL information.
noVkLinksbooleanIf true is passed, there will be no links to the user's profile in the open window. Only for mobile devices.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

WhatsAppShare

👨‍💻 Code

<whatsapp-share-btn url="https://dv-ngx-social-share.vercel.app" title="dv-ngx-social-share is a social share buttons for your Angular apps."></whatsapp-share-btn>

📖 WhatsAppShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the shared page to be shared.
titlestringThe title of the shared page.
separatorstring
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

YummlyShare

👨‍💻 Code

<yummly-share-btn 
    url="https://dv-ngx-social-share.vercel.app" 
    title="dv-ngx-social-share is a social share buttons for your Angular apps." 
    image='url-of-image' 
></yummly-share-btn>

📖 YummlyShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the shared page to be shared.
titlestringThe title of the shared page.
imagestringThe Link of the Image to be shared along.
openInNewTabbooleanfalseOpen share window in a new tab if set to true.
imgStyleobjectAngular ngStyle way for stying for the Image

💖 Wrap Up

If you think any of the dv-ngx-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-ngx-social-share by forking and sending a pull request!

Your contributions are welcome.

How to contribute:

  • Fork the dv-ngx-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