Adrian Hild

Copy Button

Buttons

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>
  );
}

Dependencies

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Button

    Button

    32
  • Split Button

    Split Button

    32