Shadcn.io is not affiliated with official shadcn/ui
Loading Button
Button with built-in loading spinner and state management for React.
Finally, a loading button that just works. Pass loading= and it shows a spinner, disables itself, and swaps the text—all automatically. No more juggling disabled states and conditional icons. The spinner matches your text color and the transition is smooth. Perfect for form submissions, API calls, or any async action. When loading completes, it snaps back instantly. One prop, zero hassle.
Loading Button preview
Loading...
Scroll to load preview
Installation
Install
Pro button
Related Components
Copy Button
Clipboard with feedback
GitHub Stars Button
Live star count
Pulse Button
Pulsing attention ring
Ripple Button
Material Design ripple
Shimmer Button
Flowing shimmer
Bounce Button
Elastic click bounce