Skip to content

emoji-gen/vue-sharer

Repository files navigation

vue-sharer

npm Build Status dependencies Status devDependencies Status Greenkeeper badge License Beerpay

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