Launch sale — 60% off Pro
Contact
SpinnerButton

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

React Spinner - Loading Icon Button

A React icon button showing only a spinner during loading state using disabled and size icon props without text labels

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Icon buttons are compact—but how do users know an icon button is loading? This React icon button replaces icon with Spinner during loading. Built with shadcn/ui Button size icon and Spinner component, the square button shows only spinner—perfect for toolbar actions, compact UIs, icon-only controls like refresh or sync, minimal interfaces, or any icon button triggering async operations where space is limited and text labels don't fit but loading feedback is still essential.

Pattern created by @haydenbleasel

Installation

Questions you might have