Breath Rings
betaA filled dot inside two thin rings that breathe in and out on a slow loop, for an idle or listening state.
- Feedback
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add breath-ringsnpm packages installed: class-variance-authority.
import { BreathRings } from "@/components/ui/breath-rings";Default
Demo
Sizes
<BreathRings>
| Prop | Type | Default |
|---|---|---|
labelAnnounced through a polite live region. Omit it when the context already says what is happening. | string | — |
periodLength of one breath, in seconds, before the motion scale. | number | 2 |
size | "sm" | "md" | "lg" | "md" |
Plus every attribute of <span> except children.
The artwork is aria-hidden. Pass `label` to announce the state through a polite role="status" region; omit it when the surrounding control already reports that it is listening. It is decorative rather than a progress indicator, so under reduced motion the loop runs once in an instant and the rings settle at rest. Durations scale with --motion-scale, and the colour follows currentColor.
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