Installation
pnpm dlx shadcn@latest add https://loading.design/r/ring.jsonUsage
import { Ring } from "@/components/loading/ring"
<Ring size={20} speed={0.8} />API
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | string | 20 | Rendered width and height. Apply color and layout styles to the surrounding element. |
| speed | number | 0.8 | Duration of one rotation, in seconds. |
| label | string | Loading | Accessible status label. Pass an empty string for decorative use. |
Accessibility
The component exposes a polite status through its label. Use an empty label only when nearby text already communicates the loading state, or when the motion is purely decorative.