Orbit Dots
betaA loading indicator: a large centre dot inside a faint ring, with two satellites orbiting at different radii and speeds.
- Feedback
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add orbit-dotsnpm packages installed: class-variance-authority.
import { OrbitDots } from "@/components/ui/orbit-dots";Default
Demo
Sizes
Inherits Colour
<OrbitDots>
| Prop | Type | Default |
|---|---|---|
labelAnnounced to assistive technology. Pass an empty string when the loader sits inside something that already reports its busy state. | string | "Loading" |
size | "sm" | "md" | "lg" | "md" |
speedMultiplies both orbit periods: 2 is half speed. | number | 1 |
Plus every attribute of <span> except children.
A visually hidden role="status" announces `label` ("Loading" by default); pass an empty label when a surrounding control already reports its busy state. The drawing is aria-hidden. It is an indicator (data-motion="indicator"): under reduced motion it slows on --motion-scale-indicator rather than freezing, because a stopped loader reads as a hang.
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