Browse docsSpinner

FeedbackNew

Glass Spinner

A ring with a fading tail, for waiting on something short.

pnpm dlx shadcn@4.14.1 add @glassyui/glass-spinner

Preview

Loading smallLoadingLoading large

Demos ready. Update 0.

Installation

First add the exact @glassyui mapping to components.json as shown in Getting Started. Then run the pinned item command:

Install Glass Spinner

pnpm dlx shadcn@4.14.1 add @glassyui/glass-spinner
What this installs5 files, 1 package

Direct registry declarations

These values belong to @glassyui/glass-spinner itself in registry.json.

Package dependencies

  • clsx

Registry dependencies

  • @glassyui/glass-provider

File targets

  • components/glassyui/glass-spinner.tsx

Complete installed closure

This follows every namespaced registry dependency recursively and de-duplicates the packages and target files installed with this item.

Package dependencies

  • clsx

Installed files

  • components/glassyui/glass-spinner.tsx
  • components/glassyui/glass-provider.tsx
  • components/glassyui/liquid-filters.tsx
  • components/glassyui/lib/preferences.ts
  • components/glassyui/styles/liquid.css

Usage

Usage

import { GlassSpinner } from "@/components/glassyui/glass-spinner";

export function SavingDemo() {
  return <GlassSpinner label="Saving" />;
}

Examples

Inside a button

<GlassButton disabled>
  <GlassSpinner size="sm" label="Saving" />
  Saving…
</GlassButton>

API

GlassSpinner

A status element with a rotating ring.

label

Read out by screen readers. Defaults to Loading.

size

sm, md (default) or lg.

Notes

Colour

The ring takes its colour from the surrounding text, so it suits any button or surface.

Reduced motion

The ring stops turning. Its label still tells assistive technology that work is under way.

Accessibility

Keep the Radix-backed semantics intact and preserve visible labels, focus states, and keyboard operation when copying the source.

Performance

Use provider quality preferences for dense app screens. Reserve strong refraction for hero or showcase surfaces.