0.3.2 • Published 6 years ago

vue-share-social v0.3.2

Weekly downloads
56
License
-
Repository
-
Last release
6 years ago

vue-share-social

Build Status

Social NetWorking Share Button Components on Vue.js.

Usage

install

$ npm install vue-share-social

or

$ yarn add vue-share-social

※ Transpile Build And node-sass, sass-loader Required. (ex: webpack, babel)

Add Plugin

import Vue from 'vue'
import VueShareSocial from 'vue-share-social'

Vue.use(VueShareSocial)

or

Use Component

Common Props

propsdefaultdescription
urlcurrent urlshared url
windowWidth640popup window width
windowHeight640popup window height
sizembutton size at s, m, l
typecirclebutton type at circle, square, rounded
elevation5the height of the button shadow in the range of 1 to 10

Twitter And Hatena Props

propsdefaultdescription
title-shared title

Pattern On Share Button

  • Facebook Share
  • Twitter Like
  • GooglePlus Share
  • Hatena Blog Share
  • Line Like
<template>
  <div>
    <ShareFacebook url="http://recruit.istyle.co.jp/career/"/>
    <ShareTwitter url="http://recruit.istyle.co.jp/career/"/>
    <ShareGooglePlus url="http://recruit.istyle.co.jp/career/"/>
    <ShareHatena url="http://recruit.istyle.co.jp/career/"/>
    <ShareLine url="http://recruit.istyle.co.jp/career/"/>
  </div>
</template>

<script>
import { ShareFacebook, ShareTwitter, ShareGooglePlus, ShareHatena, ShareLine } from 'vue-share-social'

export default {
  components: {
    ShareFacebook,
    ShareTwitter,
    ShareGooglePlus,
    ShareHatena,
    ShareLine
  }
}
</script>

Credit

License

MIT

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago