Report a problem or share feedback← Catalog
Stateful Button
curatedfreeaceternity/stateful-button
A button that shows a loading state when clicked, and a success state when the action is completed.
$
npx shadcn@latest add @aceternity/stateful-buttonOur notes
Button with loading → success states built in.- Source
- Aceternity UI
- Kind
- component
- Categories
- button, loader
- Use as
- drop-in — replaces your component
- Applies to
- button
- Motion
- on press, state · subtle · motion · medium cost · ignores reduced motion
- Tags
- stateful
- Licence
- Free for unlimited personal & commercial projects; no redistributing as a competing library. Pro/All-Access is a one-time purchase.
- Live demo
- ui.aceternity.com
- Docs
- ui.aceternity.com
Similar
Compare all 4 →- Orbit Border Buttonoriginkit/orbit-border-button
- 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.
- Button Copysmoothui/button-copyCopy 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.