Spinner Examples
17 loading spinners: standalone sizes and colors, loading buttons, status lines with text, and spinners inside empty states, input groups and items. Each on React, Vue, Svelte and Solid, with Base UI, React Aria, Ark UI or Radix UI on React.
Every spinner example
17 examples.
- Default SpinnerStandardA spinner at the default 16px size, in the surrounding text color, named Loading. No request is running.

- Inline with TextInlineA default 16px spinner beside the words Loading data... on one line. No data is being loaded.

- Large SpinnerStandardA 32px spinner for an empty page or panel. It uses the surrounding text color and is named Loading.

- Loading ButtonButtonA disabled button with a spinner in front of the label Loading.... The file does not send a request.

- Loading Icon ButtonButtonA disabled square button whose only content is a spinner. The button's accessible name is Loading.

- Loading Outline ButtonButtonA disabled outline button with a spinner in front of the word Processing. No work is running in the demo.

- Loading Secondary ButtonButtonA disabled secondary button with a spinner in front of Saving Changes. Nothing in the demo is saved.

- Loading Small ButtonButtonA small disabled button with a 12px spinner in front of Please Wait. No request is running.

- Muted SpinnerStandardA 16px spinner in the muted text color for a quiet wait, named Loading. No work is running.

- Primary Color SpinnerStandardA 16px spinner in the primary color, named Loading, which follows the theme. No request is running.

- Small SpinnerStandardA 12px spinner for a tight inline spot. It takes the surrounding text color and is named Loading.

- Spinner After TextInlineThe words Processing your request come first, then a 12px spinner. The line does not track a real request.

Or describe it. With Pro, your AI agent installs the spinner example you describe, on your framework and UI library.
Get ProGalleries
More component examples
8 related galleries, free: open one for its live examples and their code.
Pricing
Spinner examples MCP, with Pro
Your AI agent installs any of the 1364 examples, and every component, block and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
A turning wheel that says the app is working and the wait has no known length: saving a form, fetching a record, sending a message. shadcn.io's Spinner is a Lucide loader icon with `animate-spin`, `role="status"` and an `aria-label` of Loading, sized and colored with Tailwind classes. It comes for React on Base UI, React Aria, Ark UI and Radix UI, and for Vue, Svelte and Solid.
Yes. Every example is free to use in personal and commercial projects, with no attribution. Seeing the code and installing it takes a free shadcn.io account.
A Spinner for a short wait you can't measure. A Skeleton when content with a known layout is on its way, like cards or a table. A Progress bar when you know how far along the task is, like an upload.
Skip it for waits under a few hundred milliseconds, where a flash of motion distracts more than it helps. For longer waits, show it where the action happened, such as in the button, and say what's happening in words.
Make the `Spinner` the button's first child with `data-icon="inline-start"`, keep a label such as Saving..., and disable the button while the work runs so it can't be pressed twice (`isDisabled` on React Aria). Hide the spinner with `aria-hidden` there, since the label already says what's happening.
Put the spinner and the words in a flex row with `items-center` and `gap-2`. A 12px spinner (`size-3`) fits small text; the default 16px fits body text.
With classes: it's `size-4` (16px) by default, so pass `size-3`, `size-6` or `size-8`. It draws with `currentColor`, so `text-primary`, `text-muted-foreground` or the parent's text color sets its color.
Sign in with a free account, open the example and run the install command it shows. It adds the example and the components it uses, such as Spinner and Button, to your project, for your framework and UI library.
Keep a loading flag in your component's state, set it when the work starts and clear it when it ends, and render the spinner (and disable the button) while it's set. The examples show the loading state itself, with no state around it.
The `Spinner` already does: it ships `motion-reduce:animate-none` next to `animate-spin`, so the icon holds still when the system asks for less motion. The status role and label stay, so the wait is still announced.
shadcn.io's Spinner, and the components some examples place it in (Button, Empty, Input Group, Item, Progress), built on Base UI, React Aria, Ark UI or Radix UI in React and on Ark UI in Vue, Svelte and Solid, with Tailwind CSS and Lucide icons.
The Spinner has `role="status"` and an `aria-label` of Loading, which you can change to name the work, such as Loading messages. Inside a button with a label, the examples hide it with `aria-hidden` so the label isn't read twice; an icon-only button gets its own `aria-label`.
Yes. Each example looks the same on every target. Only the prop names differ where the libraries differ, such as `isDisabled` on React Aria.
4.9 out of 5 from 150+ developers
Every spinner example. One prompt away.
Every spinner example is free with an account. With Pro, your AI agent installs them from a prompt.
Get Pro
















