Launch sale — 60% off Pro
Contact
SpinnerButton

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Spinner - Loading Secondary Button

A React secondary button showing loading state with spinner and Saving Changes text using disabled and variant secondary props

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Forms need visual hierarchy—not all loading buttons should scream primary. This React secondary button shows Spinner with Saving Changes text in muted styling. Built with shadcn/ui Button variant secondary and Spinner component, the subtle gray background feels less prominent—perfect for auto-save actions, draft saves, secondary submissions, background operations, less critical async work, or any loading button where secondary variant matches action importance and primary would draw too much attention.

Pattern created by @haydenbleasel

Installation

Questions you might have