Breath Orb
betaA soft orb that breathes big and small inside a faint ring that answers it, on a two-second loop.
- Effects & motion
- 1 file
- 1 npm package
- Accessibility notes
pnpm dlx @dowel-ui/cli add breath-orbnpm packages installed: class-variance-authority.
import { BreathOrb } from "@/components/ui/breath-orb";Default
Demo
Exercise
<BreathOrb>
| Prop | Type | Default |
|---|---|---|
durationSeconds for one full breath, in and out. | number | 2 |
labelNames it as an image. Without it, the orb is hidden from assistive tech. | string | — |
pausedHolds the breath on its current frame. | boolean | false |
size | "sm" | "md" | "lg" | "md" |
Plus every attribute of <span> except children.
Decorative and aria-hidden by default. When the breath carries meaning, such as a guided breathing exercise, pass `label` and it becomes role="img" with that name; describe the rhythm in text nearby if the user is meant to follow it. It is not a progress indicator, so under reduced motion the loop stops and the orb settles at full size. `paused` holds it still.
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