Social media share buttons and counts for Vue.js
npm install vue-socials
๐ฌ Social media share buttons and counts for Vue.js.
Explore website ยป
Key Features โข
Installation โข
Documentation โข
Browsers support โข
License โข
Support the project โข
Contributing
* 50+ reusable components
* Small ~1.3KB component average size (minified and gzipped)
* Fully tree-shakeable
* No dependencies
* No SDK
* Don't track the user
* Completely unstyled
* Built with a11y in mind
* Support Vue 2 & Vue 3
* Support SSR
* Each component exposing a single slot that gives you complete control over what should actually be rendered
npm
``shellVue 2
npm install vue-socials@1
yarn
`shell
Vue 2
yarn add vue-socials@1Vue 3
yarn add vue-socials
`Import all components (not recommended)
`js
/**
* Vue 2
*/
import Vue from 'vue'
import VueSocials from 'vue-socials';Vue.use(VueSocials)
/**
* Vue 3
*/
import { createApp } from 'vue'
import VueSocials from 'vue-socials';
import App from './App.vue'
const app = createApp(App)
app.use(VueSocials)
`Import only specific component
`js
/**
* Vue 2
*/
import Vue from 'vue'
import { SGithub } from 'vue-socials';Vue.component('SGithub', SGithub)
/**
* Vue 3
*/
import { createApp } from 'vue'
import { SGithub } from 'vue-socials';
import App from './App.vue'
const app = createApp(App)
app.component('SGithub', SGithub)
`
Documentation ๐ค
Browse online documentation here
$3
$3
*
Blogger
$3
*
DevTo
*
Diaspora
*
Douban
$3
*
Email
*
Evernote
$3
$3
*
Github
*
Gmail
$3
*
Hatena
*
Houzz
$3
K
L
*
Line
*
Linkedin
M
*
MailRu
*
Mastodon
O
P
*
Pocket
Q
*
Qzone
R
*
Reddit
*
Renren
S
*
Skype
*
Sms
T
*
Telegram
*
Threema
*
Trello
*
Tumblr
*
Twitter
V
*
Viber
W
*
Weibo
*
Whatsapp
X
*
Xing
Y
*
Yahoo
*
Yammer
---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ your blogpost title
text โ your blogpost content
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
title โ your blogpost title
isPublished โ is your blogpost published
tags โ hashtags for blogpost
content โ your blogpost content
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ your blogpost title
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 1100, height: 450, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ your blogpost title
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
mail โ e-mail recipient address
subject โ subject of e-mail
cc โ carbon copy e-mail address
bcc โ blind carbon copy e-mail address
body โ body of e-mail
| {}---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 800, height: 560, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ your blogpost title
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 685, height: 600, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
quote โ your blogpost quote
hashtag โ your blogpost hashtag
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:share-options="shareOptions"
@load="onLoad"
@error="onError"
@loading="onLoading"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
id โ the URL you want to share
accessToken โ your facebook access token
fields โ a comma-separated list of fields you want to request.
| {}
tag | string | Dynamic HTML tag or component | spanEvents
| Event name | Usage |
| ------ | ------ |
load | the request has finished successfully |
error | the request has finished with error |
loading | the request has started |โ ๏ธ Warning
This component uses
JSONP so the content won't be available during SSR.---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 685, height: 600, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
redirectUri โ The URL to redirect to after a person clicks a button on the dialog.
appId โ Your app's unique identifier.
to โ A user ID of a recipient. Once the dialog comes up, the sender can specify additional people as recipients.
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 685, height: 600, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 834, height: 572, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ your blogpost title
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 834, height: 572, }
shareOptions | object | Your share link parameters:
username โ your GitHub username
type โ share link type (sponsor, follow, profile)
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:share-options="shareOptions"
@load="onLoad"
@error="onError"
@loading="onLoading"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
username โ your GitHub username
type โ share link type (follow)
| {}
tag | string | Dynamic HTML tag or component | spanEvents
| Event name | Usage |
| ------ | ------ |
load | the request has finished successfully |
error | the request has finished with error |
loading | the request has started |โ ๏ธ Warning
This component uses
JSONP so the content won't be available during SSR.---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 834, height: 572, }
shareOptions | object | Your share link parameters:
username โ your gist username
gistId โ your gist id
type โ share link type (gist, star, fork, download)
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:share-options="shareOptions"
@load="onLoad"
@error="onError"
@loading="onLoading"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
gistId โ your gist id
type โ share link type (fork)
| {}
tag | string | Dynamic HTML tag or component | spanEvents
| Event name | Usage |
| ------ | ------ |
load | the request has finished successfully |
error | the request has finished with error |
loading | the request has started |โ ๏ธ Warning
This component uses
JSONP so the content won't be available during SSR.---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 834, height: 572, }
shareOptions | object | Your share link parameters:
username โ your gist username
repository โ your repository name
type โ share link type (repo, watch, star, fork, download, issue, pr, template)
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:share-options="shareOptions"
@load="onLoad"
@error="onError"
@loading="onLoading"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
username โ your github username
repository โ your github repository
type โ share link type (watch, type, fork, issues)
| {}
tag | string | Dynamic HTML tag or component | spanEvents
| Event name | Usage |
| ------ | ------ |
load | the request has finished successfully |
error | the request has finished with error |
loading | the request has started |โ ๏ธ Warning
This component uses
JSONP so the content won't be available during SSR.---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
to โ e-mail recipient address
su โ subject of e-mail
cc โ carbon copy e-mail address
bcc โ blind carbon copy e-mail address
body โ body of e-mail
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
title โ your bookmark title
url โ your url
annotation โ your text
tags โ your keywords or hashtags
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
title โ your bookmark title
url โ your url
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
title โ your bookmark title
url โ your url
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:share-options="shareOptions"
@load="onLoad"
@error="onError"
@loading="onLoading"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
url โ the URL you want to share
| {}
tag | string | Dynamic HTML tag or component | spanEvents
| Event name | Usage |
| ------ | ------ |
load | the request has finished successfully |
error | the request has finished with error |
loading | the request has started |โ ๏ธ Warning
This component uses
JSONP so the content won't be available during SSR.---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 1100, height: 700, }
shareOptions | object | Your share link parameters:
url โ Canonical URL of your product. If you already have products listed in Houzz, make sure the URLs match exactly to prevent duplicate listings and maintain accuracy of the Ideabook count.
id โ A unique identifier that verifies you own this web page.
image โ URL of hi-res product image.
title โ Title of the product.
category โ Keywords to help categorize the product. (ie. 'Wall Sconces')
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 600, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
text โ your blogpost text
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
text โ your blogpost text
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:share-options="shareOptions"
@load="onLoad"
@error="onError"
@loading="onLoading"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
shareOptions | object | Your share link parameters:
url โ the URL you want to share
| {}
tag | string | Dynamic HTML tag or component | spanEvents
| Event name | Usage |
| ------ | ------ |
load | the request has finished successfully |
error | the request has finished with error |
loading | the request has started |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
subject โ your title
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ your title
description โ your description
image โ your image
swfUrl โ your flash-player with video
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ |--------------------------------------------------------------------------------------------------------------------------------------------------------| ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 700, }
shareOptions | object | Your share link parameters:
domain โ the mastodon domain
url โ the URL you want to share
text โ your text
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object | Your share link parameters:
url โ the URL you want to share
title โ Default Text to be inserted in the assignments "Title" field (50 character limit)
text โ Default Text to be inserted before the link in the message compose box (200 character limit)
preview โ Whether or not to show a preview of the content to share.
instruction โ Default Text to be inserted in the assignments "Instructions" field (200 character limit)
| {}
useNativeBehavior | boolean | Use native link behavior instead of window.open() or not | falseEvents
| Event name | Usage |
| ------ | ------ |
popup-open | window.open() has been opened |
popup-close | window.open() has been closed |
popup-block | window.open() has been blocked |
popup-focus | window.open() has been focused |---
$3
Usage
`vue
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
>
`Props
| Prop | Type | Description | Default value |
| ------ | ------ | ------ | ------ |
windowFeatures | object | Pass options to window.open(). Requested features of the new window. | { width: 600, height: 540, }
shareOptions | object` | Your share link parameters: