Spinners in buttons.
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: Leading spinners in a live primary, a disabled outline and a square icon only button with its own label
When to use
- Pending states inside buttons, status badges and search fields while a request runs
- Loading views for a card or an empty panel, including blurred covers over content being refreshed
- Inline notes such as checking, syncing or reconnecting, led by a small tinted spinner or bouncing dots
When not to use
- A save action that cycles idle, saving and saved after one click: use the Button component
- Content of a known layout, held as muted placeholder shapes until it arrives: use the Skeleton component
- A wait where the share of work done is known, such as an upload percent: use the Progress component
Agent notes
- The Processing
Buttonis notdisabled, so it stays clickable while it spins; lock it from your pending flag data-iconinline-start on theSpinnerin each labelledButtontrims that button's leading padding to fit the icon- No example holds a pending flag and
disabledis hardcoded where it appears; show the indicator and lock controls from your own request state
https://reui.io/components/spinner/c-spinner-2.mdget_example("c-spinner-2")npx shadcn@latest add @reui/c-spinner-2About Shadcn Spinner In Buttons
Spinners in buttons. Built by composing Button, Spinner. A free, open source shadcn spinner example you can install with npx shadcn@latest add @reui/c-spinner-2 and edit as your own code.
What You Can Build With Shadcn Spinner In Buttons
- Composes Button, Spinner, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-spinner-2
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Spinner Examples
- Basic Basic spinner.
- In Badges Spinners in badges.
- In Input Group Spinner in input group.
- In Empty State Spinner in empty state.
- Pending Buttons Button loading states
- Overlay With Caption Overlay loading spinner
- Full Page Full page loading state
- Inline Text Inline loading text with spinner
- Loading Dots Animated loading dots
- Card Overlay Spinner overlay on card
- Color Variants Spinner color variants
Related Shadcn Component Categories
Open-source shadcn stepper components for multi-step forms, checkout flows, and onboarding.
Open-source shadcn switch components for settings toggles, preferences, and binary choices.
Open-source shadcn table components for admin tables, data display, and responsive lists.
Open-source shadcn tabs components for segmented content, settings views, and dashboard sections.
Open-source shadcn textarea components for comments, long-form input, and support tickets.
Open-source shadcn time picker components for booking forms, opening hours, and shift scheduling.
Frequently Asked Questions
When should I use Shadcn Spinner In Buttons?
Use it for leading spinners in a live primary, a disabled outline and a square icon only button with its own label.
Shadcn Spinner as a whole fits:
- Pending states inside buttons, status badges and search fields while a request runs
- Loading views for a card or an empty panel, including blurred covers over content being refreshed
- Inline notes such as checking, syncing or reconnecting, led by a small tinted spinner or bouncing dots
For a save action that cycles idle, saving and saved after one click, use the Button component. For content of a known layout, held as muted placeholder shapes until it arrives, use the Skeleton component. For a wait where the share of work done is known, such as an upload percent, use the Progress component.
How do I install Shadcn Spinner In Buttons?
Is Shadcn Spinner In Buttons free to use?
Which components does Shadcn Spinner In Buttons use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.