Component packs › Fidget › Copy Icon

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.

Copy Icon props

PropTypeDefaultDescription
textstringText written to the clipboard on press.
disabledboolean
labelstringAccessible name.
resetAfternumber1600How long the tick stays, in ms. Default 1600.
sizenumberScale factor. 1 = 56 px button.
onCopy(text: string) => void
autoplaynumber | falseShowcase mode: copies every N ms while visible (without touching the clipboard).

Methods on the ref

Use it in React

import CopyIcon from './CopyIcon';

<CopyIcon />

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

More in Fidget

Good for: Animated icons.