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.