Skip to content
caliper ui pro docs

Flow field

Fine ink strands drifting through a slowly turning current, like iron filings or wind on a weather map. The pointer stirs an eddy that the strands bend around. Content placed inside sits above it.

Pro

Wind API

Wind at 10 m, every 15 minutes, anywhere.

When to use

  • The backdrop of a hero, a sign-in screen or an empty state that wants quiet life.
  • Products about weather, data, networks or anything that flows.

When not to use

  • Behind dense text or tables; keep the content short and on a solid surface.
  • More than one per page.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/flow-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

FlowField

3 props

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

PropTypeDefaultDescription
densitynumber3Strands per 10,000 px² of area.
speednumber46Drift in px per second.
scalenumber1Size of the swirls: higher is wider, calmer currents.

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

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

More in Surfaces