npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

share-button-links

v2.3.9

Published

Share buttons links for websites, blogs and more.

Downloads

243

Readme

Share Button Links

Vue 3 share buttons for websites, blogs, docs and landing pages.

Installation

npm install share-button-links

or

yarn add share-button-links

Exports

The package root exports the library styles and all public components.

Buttons

import {
  ButtonCopy,
  ButtonEmail,
  ButtonFacebook,
  ButtonLinkedIn,
  ButtonPinterest,
  ButtonPocket,
  ButtonReddit,
  ButtonTelegram,
  ButtonTumblr,
  ButtonTwitter,
  ButtonWhatsapp
} from "share-button-links";

Icon Buttons

import {
  CopyIcon,
  EmailIcon,
  FacebookIcon,
  LinkedInIcon,
  PinterestIcon,
  PocketIcon,
  RedditIcon,
  TelegramIcon,
  TumblrIcon,
  TwitterIcon,
  WhatsappIcon
} from "share-button-links";

Button Group

import { ButtonGroupIcons } from "share-button-links";

You can also import submodules directly if you prefer:

import { ButtonFacebook } from "share-button-links/components/buttons";
import { FacebookIcon } from "share-button-links/components/icons";
import ButtonGroupIcons from "share-button-links/components/button-group";

Styles

The package ships with compiled CSS and the original SCSS entry.

@import "share-button-links/dist/share-button-links.css";
@use "share-button-links/dist/share-button-links.scss";

Basic Usage

<script setup lang="ts">
import { ButtonFacebook, TwitterIcon, ButtonGroupIcons } from "share-button-links";
</script>

<template>
  <ButtonFacebook
    url="https://example.com/article"
    title="A shareable article"
    text="Facebook"
    has-icon
    is-rounded
  />

  <TwitterIcon
    url="https://example.com/article"
    title="A shareable article"
    is-circled
  />

  <ButtonGroupIcons
    url="https://example.com/article"
    title="A shareable article"
    message="Take a look at this"
    description="Reusable Vue share buttons"
    media-url="https://example.com/cover.png"
    content="Extra text for Tumblr or email"
    subject="Check this out"
    is-rounded
    facebook-icon
    twitter-icon
    telegram-icon
    whatsapp-icon
    copy-icon
  />
</template>

Shared Props

Most button components support:

  • isRounded?: boolean
  • isCircled?: boolean
  • isBordered?: boolean

Text buttons also support:

  • hasIcon?: boolean

Icon buttons also support:

  • isAllWhite?: boolean
  • isWhited?: boolean

Copy Button Props

ButtonCopy and CopyIcon support copying a URL and show live feedback after success.

Common props:

  • url: string
  • text?: string for ButtonCopy
  • hasIcon?: boolean for ButtonCopy

Network-Specific Props

Some components require extra data depending on the destination:

  • title for Facebook, Twitter, Reddit, Pocket and Tumblr.
  • message for WhatsApp and Telegram.
  • description and mediaUrl for Pinterest.
  • to, subject and content for Email.
  • content for Tumblr.

Accessibility Contract

  • Icon-only components expose an aria-label and keep decorative SVGs hidden from screen readers.
  • Copy components expose success feedback through aria-live="polite".
  • Interactive controls keep native semantics with <a> or <button type="button">.
  • Focus styling is visible through :focus-visible.

Local Development

npm run dev

Useful commands:

  • npm run build builds the library bundles.
  • npm run preview serves the local production build.
  • npm run test:unit runs the unit tests.
  • npm run lint runs ESLint with auto-fix.
  • npm run size:report prints the bundle size report.

Notes

Documentation

Docs site: share-button-links.netlify.app