Copy Button
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;.

- Library
- LocalMode
- Framework
- React
- Type
- component
- License
- MIT
- Dependencies
- lucide-react
- Install
npx shadcn add @localmode/ui/ui/input-controls/copy-button- Files
apps/ui/registry/localmode/input-controls/copy-button/copy-button.tsxapps/ui/registry/localmode/lib/utils.ts
- Source
- https://github.com/LocalMode-AI/LocalMode
Categories
- Action Components
- React Action Components
- Tailwind CSS Action Components
- Animated Action Components
- Button Components
- React Button Components
- Tailwind CSS Button Components
- Animated Button Components
- Copy Button Components
- React Copy Button Components
- Tailwind CSS Copy Button Components
- Animated Copy Button Components