Vue sharer

The Vue directive that bind to Sharer.js

Version: 1.0.0 Updated: 01/05/2019

By: emoji-gen License: MIT

Downloads Last 30 Days: 193

Install

npm i vue-sharer
yarn add vue-sharer

Repository: https://github.com/emoji-gen/vue-sharer

CDNs

bundle.run: https://bundle.run/vue-sharer

jsDelivr: https://cdn.jsdelivr.net/npm/vue-sharer

unpkg: https://unpkg.com/vue-sharer

vue-sharer

npm Build Status dependencies Status devDependencies Status Greenkeeper badge Beerpay Osushi

The Vue directive that bind to Sharer.js

Requirements

  • Vue 1.x or 2.x

Installing

$ yarn add vue-sharer

or

$ npm install vue-sharer --save

Getting Started

import VueSharer from 'vue-sharer'

new Vue({
  directives: {
    sharer: VueSharer,
  },
})
<button class="sharer button" data-sharer="twitter" data-title="title" v-sharer>
  Share on Twitter
</button>

Example

First, try to build example projects.

$ git clone https://github.com/emoji-gen/vue-sharer.git
$ cd vue-sharer
$ npm install
$ npm run example

License

MIT © Emoji Generator

Categories: Vue js
Tags: