Spinner
A small loading indicator with a readable status.
Interactive preview
Usage
import { Spinner } from "@devvy-ui/react";
<Spinner label="Loading project details" />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | Loading | Text announced by the status region. |
| size | sm | md | lg | md | Indicator dimensions. |
| decorative | boolean | false | Hide the spinner when another status already names the task. |
Accessibility & behavior
Platform Behavior & Guidelines
The ring is decorative and its label is visually hidden inside a status region. Use decorative when placed next to an existing named status. Reduced motion and forced colors stop rotation. Replace it with content or an error when the operation finishes.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add spinnerMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.