About
A button that copies a given value to the clipboard and shows a checkmark confirmation for a moment. Graceful fallback when the Clipboard API is blocked.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Copy Button to your project and fits it to your theme.
Code
How Copy Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import CopyButton from "@/components/ui/copybutton";
export default function CopyButtonDemo() {
return (
<div className="flex flex-col items-start gap-4 p-6">
<CopyButton value="npm install @21st-dev/registry" />
<CopyButton value="hello@terson.dev">Copy email</CopyButton>
</div>
);
}







