Skip to content
caliper ui pro docs

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.

Pro

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

terminal
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.

PropTypeDefaultDescription
label *string—What it stands for, e.g. "Rendering your report"; the drawing itself is not read.
seednumber7Picks the first figure; the same seed always draws the same one.
durationnumber32Seconds to draw one figure before starting the next.

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.md

The index of every part is at /llms.txt.

More in Changing values