Put the slip on the glass, by dragging it or with one click. The lid lifts, the lamp scans it and a toner copy slides into the tray. Taking the copy out puts the value on the clipboard. Every copy is a little different: an open-lid border, specks, a drum line, a hair off square.
npx shadcn@latest add https://clickworks.dev/r/copier.jsonThe files land in components/clickworks/copier/. No other packages are added.
import { Copier } from "@/components/clickworks/copier/react/Copier"
export function ContactEmail() {
return <Copier value="hello@yourstudio.com" label="Email" theme="auto" style={{ width: 320 }} />
}Typed on the slip and copied to the clipboard. Long values condense to fit.
Default "hello@example.com"
Small printed label above the value.
Default "Email"
Engraved on the lid. Empty hides it.
Auto follows the page (its background, data-theme or dark class), then the device.
Default "dark"
Start key, display and scan lamp.
Default "rgb(226, 72, 31)"
Machine, tray, slip and type colours. Every shade is mixed from them.
Colours for one theme only. They win over the shared colours.
Any CSS font family. Nothing is downloaded: load the font on your page.
The lid, motor, paper and the copied beep.
Default true
Small vibrations on phones.
Default true
Copies stay where they're dropped, or slide away after copying.
Default "stay"
A frozen, non-interactive state for thumbnails.
The value was put on the clipboard.
Size it like an image: set a width, a height or both, and it centres itself without stretching. Colours are props rather than CSS variables, because the machine mixes every shade, shadow and glow from them.