0.1.5 • Published 4 years ago

vue-simple-addthis-share v0.1.5

Weekly downloads
253
License
MIT
Repository
github
Last release
4 years ago

Simple AddThis share component for Vue and Nuxt

release version npm version npm.io License: MIT dependences devDependences

Solves the problem with navigating through pages and URLs. Without extra shit. Just install and use. Also works with nuxt.

Install

npm install vue-simple-addthis-share --save

Usage

<script>
  import AddThis from 'vue-simple-addthis-share'
    
  export default {
    name: "AwesomeComponent",
    components: {
      AddThis,
    }
  }
</script>

If you have the same problem as this, just try to import plugin directly

import AddThis from 'vue-simple-addthis-share/src/AddThis.vue'

If you need use it on multiply pages

import Vue from 'vue';
import AddThis from 'vue-simple-addthis-share';

Vue.component('add-this', AddThis);

Template area:

<template>
  <AddThis publicId="ra-somehash" />
</template>

Custom props

You can pass AddThis attributes like a pros for title, media etc (AddThis props documentation).

<template>
  <AddThis 
    publicId="ra-somehash" 
    data-url="THE URL"
    data-title="THE TITLE"
    data-description="THE DESCRIPTION"
    data-media="THE IMAGE"
    :async="true" 
  />
</template>
0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago