Report a problem or share feedback← Catalog
Button Copy
curatedtheme-awarefreesmoothui/button-copy
A ButtonCopy component for SmoothUI.
$
npx shadcn@latest add @smoothui/button-copynpm deps: motion, lucide-react
Our notes
Copy button that cycles idle → spinner → check with icon cross-fades, an aria-live status and a 44px hit target; icons are props. bg-background + border, spinner has motion-reduce:animate-none. Its className is string-concatenated (no cn()), so conflicting utility classes won't merge — override via a wrapper if needed.- Source
- SmoothUI
- Kind
- component
- Categories
- button
- Use as
- drop-in — replaces your component
- Applies to
- buttoncode
- Motion
- on press, state · subtle · motion · medium cost · respects reduced motion
- Tags
- button, copy, clipboard, feedback, icon-swap, spring, complexity-low, reduced-motion
- Licence
- MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
- Live demo
- smoothui.dev
- Docs
- smoothui.dev
Similar
Compare all 4 →- Stateful Buttonaceternity/stateful-buttonButton with loading → success states built in.
- Button Stateful Buttonbeui/button-statefulUseful for save/submit flows with loading, success and error states. Wire real async outcomes; keep labels and error handling explicit.
- Texture Buttoncult-ui/texture-buttonSkeuomorphic textured button variants. Heavy hard-coded neutral/indigo gradients — fits soft-glass/editorial looks, clashes with flat themes.