Gathering detailed insights and metrics for vue-share-it
Gathering detailed insights and metrics for vue-share-it
Gathering detailed insights and metrics for vue-share-it
Gathering detailed insights and metrics for vue-share-it
vue-share-ssr
vue social share based on social-share.js and it supports SSR
vue-stash
A Vue.js plugin that makes it easy to share reactive data between components.
vue-social-share-component
This is a component that makes it easy to implement social sharing in Vue.js
vue-common-store
A Vue.js plugin that makes it easy to share reactive data between components.
npm install vue-share-it
Typescript
Module System
Node Version
NPM Version
Vue (87.69%)
JavaScript (12.31%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
22 Stars
36 Commits
11 Forks
2 Watchers
22 Branches
2 Contributors
Updated on May 27, 2025
Latest Version
1.2.0
Package Id
vue-share-it@1.2.0
Unpacked Size
219.68 kB
Size
104.55 kB
File Count
10
NPM Version
10.8.2
Node Version
18.20.8
Published on
May 27, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
A highly customizable Vue.js component for sharing links on social networks.
1# Yarn 2yarn add vue-share-it 3 4# NPM 5npm install vue-share-it --save
Browserify / Webpack
1import shareIt from 'vue-share-it'; 2 3Vue.use(shareIt);
HTML
1<script src="https://unpkg.com/vue-share-it@x.x.x/dist/vue-share-it.js"></script>
Platform | Value |
---|---|
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 |
Using vue-share-it component
Default
1<share-it />
Global configs
1<share-it text="This is sample text" url="https://www.google.com" :height="600" :width="600" />
Targets
1<share-it :targets="['twitter', 'facebook']" />
Dark
1<share-it dark />
Dense
1<share-it dense />
Outlined
1<share-it outline />
Button configs
1const share = { 2 twitter: { 3 size: "2x", 4 label: "Custom label!", 5 round: true, 6 }, 7 linkedin: { 8 size: "2x", 9 color: "#333", 10 backgroundColor: "yellow", 11 }, 12 facebook: { 13 size: "3x", 14 dark: true 15 }, 16 whatsapp: { 17 size: "2x", 18 dense: true, 19 outline: true, 20 color: 'green', 21 }, 22}
1<share-it :shareConfig="share" />
Icons
1<share-it icons />
Outlined icons
1<share-it icons outline />
Rounded icons
1<share-it icons outline round />
Icon configs
1const iconConfig ={ 2 twitter: { 3 icon: true, 4 size: "sm", 5 color: "#333", 6 round: true, 7 backgroundColor: 'yellow' 8 }, 9 linkedin: { 10 icon: true, 11 size: "lg", 12 outline: true, 13 round: true, 14 15 }, 16 facebook: { 17 icon: true, 18 size: "2x", 19 outline: true, 20 round: true 21 }, 22 whatsapp: { 23 icon: true, 24 size: "3x", 25 outline: true, 26 round: true 27 }, 28 reddit: { 29 icon: true, 30 size: "4x", 31 outline: true, 32 round: true 33 }, 34}
1<share-it :shareConfig="iconConfig" />
Using slots
1<share-it> 2 <template v-slot:twitter-icon> 3 <v-icon>mdi-twitter</v-icon> 4 </template> 5 <template v-slot:twitter-label> 6 <em>Tweet it!</em> 7 </template> 8 <template v-slot:whatsapp-icon> 9 <v-icon>mdi-whatsapp</v-icon> 10 </template> 11 <template v-slot:whatsapp-label> 12 <em>Share on Whatsapp</em> 13 </template> 14</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 |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
Found 1/7 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More