A copy-to-clipboard button that shows a 2-second Copied confirmation, disables itself when there is nothing to copy, and treats an unavailable clipboard (insecure context or denied permission) as a silent no-op. Fully controlled via value; presentational. Pairs with any generated-text or result surface.
pnpm dlx shadcn@latest add "https://localmode.ai/r/ui/input-controls/copy-button.json"