Skip to content
caliper ui pro docs

Contour field

A topographic map that slowly breathes: contour lines over drifting terrain, with every fifth line drawn heavier like an index contour. Resting the pointer raises a hill, so the lines gather into rings around it and relax when it leaves.

Pro

Ridge loop

Distance
14.2 km
Ascent
860 m
Time
5 h 10

When to use

  • Backdrops for outdoor, mapping, logistics and climate products.
  • Hero and empty-state surfaces that want texture without imagery.

When not to use

  • Real terrain; it is generated and means nothing geographically.
  • Behind long text.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/contour-field

Adds its 4 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

ContourField

3 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
intervalnumber0.09Height between contour lines; smaller draws more lines.
scalenumber1Size of the hills: higher is broader country.
resolutionnumber10Sample spacing in px; smaller is smoother and costs more.

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 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/contour-field.md

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

More in Surfaces