Browse docsSpinner

FeedbackNew

Glass Spinner

A small spinning ring that tells screen readers something is loading.

Preview

Loading smallLoadingLoading large

Demos ready. Update 0.

Installation

For React 19+ apps with Tailwind CSS 4.

npx shadcn@4.14.1 add @glassyui/glass-spinner

Adds 5 files to components/glassyui and installs clsx.

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 reference

GlassSpinner

A span with role status; the ring is drawn in the theme's foreground colour, so set color to change it.

PropTypeDefaultDescription
labelstring'Loading'Visually hidden text that screen readers announce.
size'sm' | 'md' | 'lg''md'Diameter: 1rem, 1.5rem or 2.25rem.
rolestring'status'Live-region role; override it when the spinner sits inside another live region.

Also accepts HTML span attributes, except children.

Types
GlassSpinnerPropsGlassSpinnerSize