Vue 3 plugin for sharing links on social networks (Facebook, Twitter/X, LinkedIn, WhatsApp, etc.) with TypeScript support. Version 1.4.1 supports 30+ networks including Bluesky and Threads. Works as a composable, a Vue plugin with a <share-network> component, or a renderless component. Design-agnostic, no CSS included. A modern fork of vue-social-sharing (Vue 2). Peer dependency: vue ^3.3.11.
npm install vue3-social-sharingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This shows a minimal Vue 3 component using the useShareLink composable to share a URL on Facebook.
Check the list of supported networks: facebook, twitter, linkedin, etc.
Provide url and network; test share result with each network.
Update network names accordingly.
Use network: 'x' instead of 'twitter'.
Style your own buttons/spans. Use v-slot to customize.
Ensure tsconfig.json includes 'moduleResolution': 'node' or 'bundler' and 'module': 'esnext'.
Use const { shareLink } = useShareLink() inside setup.If using plugin: app.use(Vue3SocialSharingPlugin). If using component: import { ShareNetwork } from 'vue3-social-sharing'.Import ShareNetwork as named import: import { ShareNetwork } from 'vue3-social-sharing'.