Breath guide
A paced breathing guide. The circle grows as you breathe in, rests while you hold and shrinks as you breathe out, at the pace of the pattern, with the step and its count beneath and a ring that fills through each step.
Ready when you are
When to use
- Wellness, focus and meditation apps.
- A calm pause before an exam, a call or a hard task.
When not to use
- Medical guidance; it is a pacing aid.
- Busy screens; give it room and quiet.
Installation
pnpm dlx shadcn@latest add @caliper/breath-guide
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
BreathGuide
2 props
Also accepts the native props of its root element and a ref.
breathPatterns
helper
A helper exported alongside the component, not a component.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden and aria-live in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/breath-guide.mdThe index of every part is at /llms.txt.