Component
Photocopier
A copy-to-clipboard button that earns the click. Hit copy and a scanner light sweeps the content, the machine chugs, and a warm duplicate slides out of the slot into the tray. It really writes to your clipboard — no dependencies, one function to wire it up.
npm install photocopier
Ships as one function: photocopy(el) wires any trigger, or drop
data-copy on an element and it wires itself. It writes with the
async Clipboard API and falls back to execCommand on older or
insecure origins, announces the result to screen readers, and respects
prefers-reduced-motion — the light and the paper just stop
travelling.