Arc Breath
betaA spinner whose single arc grows and shrinks in length as it turns over a faint track ring.
- Feedback
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add arc-breathnpm packages installed: class-variance-authority.
import { ArcBreath } from "@/components/ui/arc-breath";Default
Demo
Sizes
<ArcBreath>
| Prop | Type | Default |
|---|---|---|
labelAnnounced through a polite role="status" region while the spinner shows. Pass an empty string inside something that already reports it is busy. | string | "Loading" |
periodLength of one breath, in seconds, before the motion scale. | number | 2 |
size | "sm" | "md" | "lg" | "md" |
thicknessStroke width in viewBox units (the circle is 48 across). | number | 3.5 |
Plus every attribute of <span> except children.
The SVG is aria-hidden and `label` (default "Loading") is announced through a polite role="status" region; pass label="" when the surrounding control already exposes its busy state. It is an indicator, marked data-motion="indicator": under reduced motion it slows on --motion-scale-indicator rather than freezing, because a stopped spinner reads as a hang. It never mirrors in right-to-left layouts.
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