Components / Composition
Spinner
An indeterminate wait.
@fabrials/ui
Refreshing the pool
Installation
Import the control from
@fabrials/ui, after setting the app up.TypeScript import { Spinner } from "@fabrials/ui";Or install it under shadcn's name, so code that imports
@/components/ui/spinnergets this control. See shims.npx shadcn@latest add @fabrials/spinner
API reference
| Prop / export | Type | Description |
|---|---|---|
aria-label | string | Defaults 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.