About
A copy button whose two sheets slide together into a check while the label rolls to Copied. Free component from uibrik (uibrik.com).
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
"use client";
import { CopyButton } from "@/components/ui/copy-button";
const props = {
text: "npm install motion",
label: "Copy",
copiedLabel: "Copied",
display: "label" as "label" | "icon",
variant: "soft" as "soft" | "ghost" | "outline",
size: "md" as "sm" | "md" | "lg",
tintSuccess: false,
successColor: "#16a34a",
resetAfter: 1.5,
radius: 12,
};
export default function Demo() {
return (
<div className="flex h-screen w-full items-center justify-center px-4">
<div className="flex items-center gap-4 rounded-2xl border border-border bg-background py-1.5 pl-4 pr-1.5">
<code className="font-mono text-sm text-muted-foreground">
<span className="select-none text-neutral-400 dark:text-neutral-600">$ </span>
{props.text}
</code>
<CopyButton {...props} />
</div>
</div>
);
}








