Harmonograph
A pen moved by two pairs of slowly dying pendulums draws one continuous line, spiralling inward into a rosette over half a minute. When the figure is done it rests, fades, and the pendulums are set going again with new swings.
When to use
- Long waits: rendering, exporting, generating.
- A quiet, generative centrepiece for an about page or an empty state.
When not to use
- Short waits; use the loader.
- Waits with known progress; show the progress bar.
Installation
pnpm dlx shadcn@latest add @caliper/harmonograph
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
Harmonograph
3 props
Also accepts the native props of its root element and a ref.
harmonographAt
0 props
No props of its own; it accepts the native props of its root element.
harmonographPendulums
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes img semantics, with aria-label kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/harmonograph.mdThe index of every part is at /llms.txt.