Skip to main content

Spinner

An indeterminate loading indicator with a screen-reader label.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

An indeterminate loading indicator with a screen-reader label.

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/spinner
import { Spinner } from '@/components/prism/Spinner';

In a no-build prototype, read it from the bundle instead: const { Spinner } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
size"sm" | "md" | "lg"—
labelstring—Screen-reader label. Default "Loading".
classNamestring—