L
LocalMode

Copy Button · LocalMode

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.

npx shadcn@latest add https://localmode.ai/r/ui/input-controls/copy-button.json
Preview Copy Button on LocalMode's site (opens in a new tab)
Loading the source for ui/input-controls/copy-button…

ui/input-controls/copy-button