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 viasize-*; inheritscurrentColorto match button labels automatically. - Accessibility: Includes
role="status"and localizedaria-labelresolved automatically from<LiquidGlassProvider locale={lang}>; slows rotation under Reduced Motion.
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/spinnerUsage
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.
| Prop | Type | Description |
|---|---|---|
locale | LiquidGlassLocaleInput | UI language of this component (any BCP 47 tag; unsupported ones fall back to English) |
messages | Partial<SpinnerMessages> | Text overrides, merged over the built-in text and the global messages.spinner |
| Key | Built-in text (English) |
|---|---|
loading | Loading |
Slider
Liquid Glass horizontal capsule slider inspired by Apple iOS 27 and macOS 27, expanding into a transparent refractive droplet while dragging with tick marks, dual-thumb ranges, and Control Center glass tracks.
Switch
Liquid Glass toggle switch inspired by Apple iOS 27 and macOS 27 that expands into a transparent refractive droplet on press or drag, interpolating track color live with velocity stretch.