Component packs › Fidget › Copy Icon
The front sheet is pulled off the pad, tilting from its own speed like paper, and a tick is written on it.
Copy Icon is an action from Fidget, a component pack with 10 animated icons: Animated icons with working parts: hinges, pendulums, springs and gravity. Price: $2 for the whole pack.
Built with: paper inertia tilt, live mask cut-out, clipboard write.
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 |
|---|---|---|---|
text | string | Text written to the clipboard on press. | |
disabled | boolean | ||
label | string | Accessible name. | |
resetAfter | number | 1600 | How long the tick stays, in ms. Default 1600. |
size | number | Scale factor. 1 = 56 px button. | |
onCopy | (text: string) => void | ||
autoplay | number | false | Showcase mode: copies every N ms while visible (without touching the clipboard). |
play(): void: Plays the peel and tick without writing to the clipboard.destroy(): voidimport CopyIcon from './CopyIcon';
<CopyIcon />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Animated icons.