Copy Button
A button component for copying text to clipboard with visual feedback
Preview
Installation
npx shadcn@latest add @cubby-ui/copy-button
Usage
import { CopyButton } from "@/components/ui/cubby-ui/copy-button";
<CopyButton />
Examples
Custom Icons
Customize the copy and check icons by providing your own icon components.
API Reference
The CopyButton component extends the Button component with clipboard functionality. All Button props are supported except size, variant, onClick, and children which are controlled internally.
Prop
Type
Default