All Projects → thisDOTname → vue-share-it

thisDOTname / vue-share-it

Licence: MIT license
A Vue.js component for sharing links to social networks

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-share-it

vue-socials
💬 Social media share buttons and counts for Vue.js
Stars: ✭ 32 (+52.38%)
Mutual labels:  social-buttons
vue-burger-button
🍔 vue-burger-button is a functional component, which is faster than a regular component, and is pretty small (JS min+gzip is lower than 700b and CSS min+gzip is lower than 400b).
Stars: ✭ 41 (+95.24%)
Mutual labels:  vue-component
unique-ui
一个用于Vue2.x的移动端组件库
Stars: ✭ 43 (+104.76%)
Mutual labels:  vue-component
vue-json-tree
Vue component that renders JSON data in a collapsible tree structure.
Stars: ✭ 48 (+128.57%)
Mutual labels:  vue-component
vue-pagination-minemine
使用 vue2.0 实现一个简洁的分页组件
Stars: ✭ 52 (+147.62%)
Mutual labels:  vue-component
xcrop
Mobile image cropping component - Vue React 移动端裁剪组件
Stars: ✭ 27 (+28.57%)
Mutual labels:  vue-component
Rrssb
RRSSB is a KNI Labs freebie crafted by @dbox and @joshuatuscan.
Stars: ✭ 3,443 (+16295.24%)
Mutual labels:  social-buttons
vue-snowf
Snowfall component for Vue.js, let it snow on your page! ❄ demo: https://fuxy526.github.io/snowf/
Stars: ✭ 38 (+80.95%)
Mutual labels:  vue-component
vue-cute-rate
Simple to use and very cute rate component for Vue.js.
Stars: ✭ 43 (+104.76%)
Mutual labels:  vue-component
vue-img-orientation-changer
A vue plugin that can help you display image in correct orientation.
Stars: ✭ 38 (+80.95%)
Mutual labels:  vue-component
vue-list-picker
Just a simple list picker component made with Vue.js (works with Vue 2 & 3)
Stars: ✭ 14 (-33.33%)
Mutual labels:  vue-component
vue-progressbar-component
[CSS GPU Animation] Simple progressbar for vuejs
Stars: ✭ 13 (-38.1%)
Mutual labels:  vue-component
vue-collapse
A simple collapse component for Vue.js
Stars: ✭ 34 (+61.9%)
Mutual labels:  vue-component
vue-virtualised
Blazing fast scrolling and updating for any amount of list and hierarchical data.
Stars: ✭ 18 (-14.29%)
Mutual labels:  vue-component
shadow
Shadow dom support for Vue
Stars: ✭ 46 (+119.05%)
Mutual labels:  vue-component
vue-splide
The Splide component for Vue.
Stars: ✭ 257 (+1123.81%)
Mutual labels:  vue-component
vue-crop
[举个例子]https://codesandbox.io/s/910ro8ym9r [演示链接(戳我直达)]http://www.wwwwxy.top/html/blg/
Stars: ✭ 38 (+80.95%)
Mutual labels:  vue-component
vstx-data-table
A data table component for the Vue Stacks Ecosystem
Stars: ✭ 34 (+61.9%)
Mutual labels:  vue-component
ui-nuclear-mobile
A configurable Mobile UI based on Antd Mobile and Vue
Stars: ✭ 61 (+190.48%)
Mutual labels:  vue-component
vue-component-devtool
Vue 组件开发模板
Stars: ✭ 32 (+52.38%)
Mutual labels:  vue-component

Release Vue.js License

vue-share-it

A highly customizable Vue.js component for sharing links on social networks.

Features

  • Easy install
  • Highly customizable
  • Extensive documentation & examples
  • Developer support
  • SEO friendly

Examples

Live demo

Docs

Installation

# Yarn 
yarn add vue-share-it

# NPM 
npm install vue-share-it --save

Usage

Browserify / Webpack

import shareIt from 'vue-share-it';

Vue.use(shareIt);

HTML

<script src="https://unpkg.com/[email protected]/dist/vue-share-it.js"></script>

Supported social-media platforms

Platform Value
Twitter twitter
LinkedIn linkedin
Facebook facebook
Whatsapp whatsapp
Reddit reddit

API

Props

Prop Data type Default Description
text String '' Caption
url String '' URL to share
width Number 600 Width of the share window
height Number 600 Height of the share window
dense Boolean false Dense button styling
dark Boolean false Dark button styling
targets Array [] Specify social media targets, defaults to all available targets
icons Boolean false Use icons as buttons
outline Boolean false Outline button styling
round Boolean false Round button styling for icons
iconSize String lg Specify icon size. See size chart below
shareConfig Object {
linkedin: {},
twitter: {},
facebook: {},
whatsapp: {},
reddit: {},
}
Advanced configuration for target specific styling

Events

Name Description Value
clicked Event that is emitted when a share button is clicked Returns social media platform which was clicked. E.g. ["twitter"]

Slots

Name Description
${platform}-icon Custom icon for platform
${platform}-label Custom label for platform

Examples

Using vue-share-it component

Default

<share-it />

Global configs

<share-it text="This is sample text" url="https://www.google.com" :height="600" :width="600" />

Targets

<share-it :targets="['twitter', 'facebook']" />

Dark

<share-it dark />

Dense

<share-it dense />

Outlined

<share-it outline />

Button configs

const share = {
  twitter: {
    size: "2x",
    label: "Custom label!",
    round: true,
  },
  linkedin: {
    size: "2x",
    color: "#333",
    backgroundColor: "yellow",
  },
  facebook: {
    size: "3x",
    dark: true
  },
  whatsapp: {
    size: "2x",
    dense: true,
    outline: true,
    color: 'green',
  },
}
<share-it :shareConfig="share" />

Icons

<share-it icons />

Outlined icons

<share-it icons outline />

Rounded icons

<share-it icons outline round />

Icon configs

const iconConfig ={
  twitter: {
    icon: true,
    size: "sm",
    color: "#333",
    round: true,
    backgroundColor: 'yellow'
  },
  linkedin: {
    icon: true,
    size: "lg",
    outline: true,
    round: true,
    
  },
  facebook: {
    icon: true,
    size: "2x",
    outline: true,
    round: true
  },
  whatsapp: {
    icon: true,
    size: "3x",
    outline: true,
    round: true
  },
  reddit: {
    icon: true,
    size: "4x",
    outline: true,
    round: true
  },
}
<share-it :shareConfig="iconConfig" />

Using slots

<share-it>
  <template v-slot:twitter-icon>
    <v-icon>mdi-twitter</v-icon>
  </template>
  <template v-slot:twitter-label>
    <em>Tweet it!</em>
  </template>
  <template v-slot:whatsapp-icon>
    <v-icon>mdi-whatsapp</v-icon>
  </template>
  <template v-slot:whatsapp-label>
    <em>Share on Whatsapp</em>
  </template>
</share-it>

Size chart

Code Size
xs .75em
sm .875em
lg 1.33em
2x 2em
3x 3em
4x 4em
5x 5em
6x 6em
7x 7em
8x 8em
9x 9em
10x 10em
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].