design-infraGitHub
Report a problem or share feedback← Catalog

Button Stateful Button

curatedfree

beui/button-stateful

Idle → loading → success / error with blur-swap slots and morphing width.

press · state — subtledrop-inRefinedTrustworthyPlayful
$npx shadcn@latest add @beui/button-stateful

npm 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