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.
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
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.
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.mdThe index of every part is at /llms.txt.