Ring Dots
betaA loading indicator of eight dots on a ring, with a few larger, brighter dots chasing round it.
- Feedback
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add ring-dotsnpm packages installed: class-variance-authority.
import { RingDots } from "@/components/ui/ring-dots";Default
Demo
Sizes
<RingDots>
| Prop | Type | Default |
|---|---|---|
countNumber of dots on the ring. | number | 8 |
durationSeconds for the bright dots to go once round. | number | 2 |
labelAnnounced to assistive technology while the loader is shown. | string | "Loading" |
size | "sm" | "md" | "lg" | "md" |
Plus every attribute of <span> except children.
The root is role="status" and holds a visually hidden label ("Loading" by default, set with `label`); the dots are aria-hidden. Pass a label that says what is loading. It is a pure progress indicator, so under reduced motion it slows to half speed rather than freezing, because a stopped loader reads as a hang. The chase runs clockwise in every writing direction.
7/7
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes