@plugdash/sharepost
The EmDash alternative to AddToAny
Make sharing the obvious next step.
Generates correct share URLs for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email on every publish. Renders as circular icon buttons - no JavaScript libraries, no tracking scripts, no 200KB payloads. Four variants. Looks right on day one.
circle
pill
ghost
filled
Every variant. The first is the default, no configuration.
Setup
Install and register
npm install @plugdash/sharepostimport sharepost from "@plugdash/sharepost" // in emdash plugins array: sharepost({ via: "abhinavs" })Add to your layout
import ShareButtons from "@plugdash/sharepost/ShareButtons.astro" <ShareButtons post={post} />
After this, every published post has share URLs ready. Add the component once - every new post picks it up automatically.
It looks right. But it's yours to change.
Props
| prop | type | default | description |
|---|---|---|---|
post | EmDash content item | Required | |
variant | "circle" | "pill" | "inline" | "minimal" | "circle" | Visual style |
platforms | array | ["twitter","linkedin","bluesky"] | Which networks to show |
CSS custom properties
| token | description |
|---|---|
--plugdash-share-gap | Space between buttons |
--plugdash-share-padding | Button padding |
--plugdash-share-radius | Button radius |
Components are intentionally simple. Copy src/ShareButtons.astrointo your theme and modify freely - no upstream coupling.
Pairs well with
share and heart are two different signals. Most readers do one or the other. Give them both.