Back to Components
Buttons
Copy Button
Click to copy text with animated feedback and multiple variants.
Dependencies
- clsx
- tailwind-merge
- lucide-react
Files
- components/ui/copy-button.tsx
Installation
Using shadcn CLI
npx shadcn add copy-button --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge lucide-react