Copy Button
A button that copies text to the clipboard with visual feedback.
import { CopyButton } from "@/registry/ui/copy-button"
export default function CopyButtonDemo() {Installation
pnpmnpmyarnbun
Usage
import { CopyButton } from "@/components/ui/copy-button"<CopyButton value="Text to copy" />Examples
With Text
Display next to a code snippet or command.
import { CopyButton } from "@/registry/ui/copy-button"
export default function CopyButtonWithText() {Custom Content
Use custom text or icons inside the button.
import { CopyButton } from "@/registry/ui/copy-button"
export default function CopyButtonCustom() {API Reference
CopyButton
Extends the Button component with copy functionality.
All other Button props are supported.