Component packs › Ditto › Share Sheet

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.

Share Sheet props

PropTypeDefaultDescription
titlestringWhat is shared.
urlstring
onShare(target: 'copy' | 'email' | 'message' | 'embed' | 'more', ok: boolean) => void
darkboolean
autoplaynumber | falseShowcase mode: opens and copies every N ms.

Methods on the ref

Use it in React

import ShareSheet from './ShareSheet';

<ShareSheet />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Ditto

Good for: Copy and share.