Contour Field
FreeSampleAnimated isolines with accented index contours every fifth line. The pointer raises a small hill in the terrain.
- backgrounds
- shader
- pattern
- interactive
Customize
These controls show a few ways to adapt it. The source is fully editable.
Install
Not published yetnpx shadcn@latest add @uicoolkit/contour-fieldInstall commands go live when this item ships to the registry.
Dependencies
Use with an agent
Copy a prompt with this component, your current preview settings and links to its docs.
Add the UICoolKit "Contour Field" component (contour-field) to this project. Docs: https://uicoolkit.com/components/contour-field Agent docs: https://uicoolkit.com/components/contour-field.md Install: npx shadcn@latest add @uicoolkit/contour-field Preview settings to match: accent Ember, radius 12px, motion on. Use the documented props and className hooks rather than editing internals, and wire it to this app's real state. (Note: this is a sample item from the UICoolKit website shell and is not published yet.)
<ContourField className="absolute inset-0" />| Prop | Type | Default |
|---|---|---|
speedTime multiplier for the animation. | number | 1 |
interactiveReact to the pointer (and clicks, where supported). | boolean | true |
colorAccent color; any CSS color or theme token. | string | var(--accent) |
classNameMerged onto the root after defaults, so consumer styles win. | string | — |
motionDisable animation or tune duration, easing and spring values. Reduced motion is honored by default. | boolean | MotionOptions | true |
Every part accepts className, and consumer classes are merged last so they win. Control state from your own data, replace any content, and tune or disable motion.
<ContourField
className="rounded-none border-2 border-black bg-yellow-300 font-mono"
motion={{ duration: 0.2 }}
/>- Decorative and aria-hidden; never carries content.
- Reduced motion renders a single still frame; offscreen and hidden tabs pause rendering.
- Falls back to nothing (or your own static background) without WebGL2.
An original UICoolKit component, designed and built from scratch.
Free items are MIT licensed. Pro items are licensed per purchase.