Documentation menu

Ring

A quiet, currentColor spinner with a weighted leading arc.

Installation

pnpm dlx shadcn@latest add https://loading.design/r/ring.json

Usage

import { Ring } from "@/components/loading/ring"
<Ring size={20} speed={0.8} />

API

PropTypeDefaultDescription
sizenumber | string20Rendered width and height. Apply color and layout styles to the surrounding element.
speednumber0.8Duration of one rotation, in seconds.
labelstringLoadingAccessible 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.