Report a problem or share feedback← Catalog
Button Stateful Button
curatedfreebeui/button-stateful
Idle → loading → success / error with blur-swap slots and morphing width.
$
npx shadcn@latest add @beui/button-statefulnpm deps: clsx, lucide-react, motion, tailwind-merge
Our notes
Useful for save/submit flows with loading, success and error states. Wire real async outcomes; keep labels and error handling explicit.- Source
- beUI (free)
- Kind
- component
- Categories
- button
- Use as
- drop-in — replaces your component
- Applies to
- button
- Motion
- on press, state · subtle · motion · medium cost
- Tags
- react, tailwind-v4, motion, motion
- Licence
- MIT — Copyright (c) 2026 Saurabh Chauhan; retain the upstream notice when copying source.
- Live demo
- beui.dev
- Docs
- beui.dev
Similar
Compare all 4 →- Stateful Buttonaceternity/stateful-buttonButton with loading → success states built in.
- Texture Buttoncult-ui/texture-buttonSkeuomorphic textured button variants. Heavy hard-coded neutral/indigo gradients — fits soft-glass/editorial looks, clashes with flat themes.
- 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.