UIComponentsReact
A turning circle that says something is in progress.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/spinner.jsonIt also adds utils. The app needs its setup first: Installation.
Usage
The spinner is the status itself (role="status", labelled "Loading"); give it an aria-label that says what is loading. Classes set its size and color.
import { Spinner } from '@/components/ui/spinner'Examples
API reference
Spinner wraps no headless component of its own: its parts are elements with classes, and their props are the element's.