Component packs › Ditto › Share Count
Share and the link drops into the counter, which bumps as it lands and rolls up by one on mechanical digits.
Share Count is a counter from Ditto, a component pack with 6 copy and share controls: Copy and share where you see the copy happen: the text lifts off and drops into the clipboard. Price: $2 for the whole pack.
Built with: flight into the badge, rolling digits with separators, your share counts once.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
url | string | Link to copy. | |
count | number | 1284 | Starting count. Default 1284. |
noun | string | "shares" | Word after the count. Default "shares". |
onShare | (count: number, ok: boolean) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: someone shares every N ms. |
readonly count: numbersetCount(n: number): voiddestroy(): voidimport ShareCount from './ShareCount';
<ShareCount />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Copy and share.