Copy Button

A button component with animated copy-to-clipboard functionality.

"use client";

import { CopyButton } from "@/components/ui/copy-button/copy-button";

export default function CopyButtonDemo() {
  return (
    <div>
      <CopyButton code="You are awesome!" />
    </div>
  );
}
npx shadcn@latest add https://roiui.com/r/copy-button.json
anatomy
<CopyButton code="code to copy" />