Copy button

controlsFreeMIT

Copies a value, and the icon and label roll over to say it worked, or that the browser said no.

Adapted from Watermelon UI (MIT) and rewritten with keyboard support, labels and reduced motion.

npx shadcn@latest add https://mikkelmanniche.dk/lab/r/copy-button.json
Width

Preview

The preview could not load.

Live demo in the dark theme.

Details

Files

  • copy-button.tsx

Used in