Blog Detail

04

Feb
Easily Share Links to Social Networks with Vue-Goodshare cover image

arrow_back Easily Share Links to Social Networks with Vue-Goodshare

Vue-goodshare is a vue js component for social sharing, It offers a simple way to share a link on the pages of your website in the most popular (and not so) social networks and mobile messengers. This component has many features:

  • Simple to install
  • Extensive documentation
  • developer support
  • SEO friendly
  • Many options for customization of appearance
  • Clean code without scripts tracking user activity on the page
  • High speed
  • Beautiful button design

Installation

You can install this package via Npn:

npm install --save vue-goodshare

Usage

Single share element

Includes only needed social networks or mobile messengers.

/**
 * Import Vue.js
 */
import Vue from "vue";

/**
 * Import vue-goodshare single element
 */
import VueGoodshareFacebook from "vue-goodshare/src/providers/Facebook.vue";

const app = new Vue({
  el: "#app",
  components: {
    VueGoodshareFacebook
  }
});

Add component to HTML template (with attributes):

<div id="app">
  <vue-goodshare-facebook
    page_url="https://github.com/koddr/vue-goodshare"
    title_social="Facebook"
    has_counter
    has_icon
  ></vue-goodshare-facebook>
</div>

Result


Bundle of share elements

Facebook, Twitter, LinkedIn, Google Plus, Tumblr, Pinterest, Reddit

/**
 * Import Vue.js
 */
import Vue from "vue";

/**
 * Import vue-goodshare bundle
 */
import VueGoodshare from "vue-goodshare";

const app = new Vue({
  el: "#app",
  components: {
    VueGoodshare
  }
});

Add components to HTML template (without attributes):

<div id="app">
  <vue-goodshare></vue-goodshare>
</div>

Result


For more details, you can visit its complete
documentation & source code on Github.

Published at : 04-02-2022

Author : Rizwan Aslam
AUTHOR
Rizwan Aslam

I am a highly results-driven professional with 12+ years of collective experience in the grounds of web application development especially in laravel, native android application development in java, and desktop application development in the dot net framework. Now managing a team of expert developers at Codebrisk.

Launch your project

Launch project