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.
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.mdThe index of every part is at /llms.txt.
More in Surfaces
Contour fieldA 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.Shader backgroundA GPU-drawn animated background.Dot gridA grid of dots that react to the pointer.