Components
Spinner
A loading indicator with three sizes.
Server componentNo state or handlers. Safe to render in a Server Component.
import { Spinner, spinnerVariants } from "@glob-ui/spinner"Preview
API
Props are generated from the TypeScript types in the package source.
SpinnerProps
Prop
Type
Accessibility
| Key or action | Behaviour |
|---|---|
| Screen readers | role="status" with an aria-label (default "Loading"). Change it to describe what is loading. |
ARIA. Spinners need a label that says what is loading. Set aria-label, for example "Saving changes".