Skip to Content
Liquid Glass UI
Components

Spinner

Apple 27 Indeterminate Spinner with eight rounded spokes rotating in stepped cadence, sized 20px on mobile ↔ 16px on desktop, inheriting current text color for seamless embedding in buttons.

Fully compatible with the standard shadcn/ui JSX API (<Spinner className="size-6" />):

  • Native activity indicator: Eight rounded spokes stepping cleanly around the dial, matching Apple 27 Progress Indicators / Indeterminate Spinner.
  • Responsive size & color: Defaults to 20px (iOS Regular) on mobile ↔ 16px on desktop, overridable via size-*; inherits currentColor to match button labels automatically.
  • Accessibility: Includes role="status" and localized aria-label resolved automatically from <LiquidGlassProvider locale={lang}>; slows rotation under Reduced Motion.
apple-liquid-ui/preview/spinner-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/spinner

Usage

import { Button } from '@/components/ui/button';
import { Spinner } from '@/components/ui/spinner';

export function Example() {
  return (
    <Button disabled>
      <Spinner className="text-current" />
      Submitting…
    </Button>
  );
}

Language & Text

Spinner accepts locale and messages, which apply to all of its parts and the overlays it opens and win over the global <LiquidGlassProvider locale messages>. To override the text globally, put it under messages.spinner on the provider. See Liquid Glass → Global settings.

PropTypeDescription
localeLiquidGlassLocaleInputUI language of this component (any BCP 47 tag; unsupported ones fall back to English)
messagesPartial<SpinnerMessages>Text overrides, merged over the built-in text and the global messages.spinner
KeyBuilt-in text (English)
loadingLoading

On this page