Component packs › Ditto › Share Sheet
The sheet rises on a spring; pick Copy link and the link lifts off its chip into the clipboard target before the sheet slides away.
Share Sheet is a share 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: spring sheet with backdrop, copy and embed flights, native share where present.
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 |
|---|---|---|---|
title | string | What is shared. | |
url | string | ||
onShare | (target: 'copy' | 'email' | 'message' | 'embed' | 'more', ok: boolean) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: opens and copies every N ms. |
readonly open: booleansetOpen(v: boolean): voiddestroy(): voidimport ShareSheet from './ShareSheet';
<ShareSheet />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Copy and share.