Skip to content
Components / Composition

Spinner

An indeterminate wait.

@fabrials/ui
Loading state

Refreshing the pool

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { Spinner } from "@fabrials/ui";
  2. Or install it under shadcn's name, so code that imports @/components/ui/spinner gets this control. See shims.

    npx shadcn@latest add @fabrials/spinner

API reference

Prop / exportTypeDescription
aria-labelstringDefaults to Loading.

Behavior

The animation stops under reduced motion. Pair a long wait with text that says what is happening.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.