Skip to main content
Clever Ops

Wind Tunnel

Scroll pitches an airfoil in a drafted wind tunnel, hairline streamlines re-solve around the body until the lift vector peaks on your stat. React and Tailwind tokens, native scroll scrub.

Preview & code

Loading Wind Tunnel preview

Installation

pnpm dlx shadcn@latest add @cleverui/scroll-wind-tunnel

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { ScrollWindTunnel } from '@/components/blocks/scroll-wind-tunnel'
Exampletsx
import { ScrollWindTunnel } from '@/components/blocks/scroll-wind-tunnel'

export default function ScrollWindTunnelDemo() {
  return (
    <ScrollWindTunnel
      eyebrow="Aero · Section 12"
      heading="Pitch the section. Earn the lift."
      body="A side-elevation tunnel with a family of hairline streamlines re-solved around a cambered profile. Scroll is the pitch control, incidence grows, upper flow compresses, and the lift vector peaks on the design figure."
      statLabel="LIFT"
      statValue="3.2× lift"
      maxAngle={14}
      streamlineCount={9}
      scrubLength={2.5}
    />
  )
}

API reference

ScrollWindTunnel accepts the following props.

PropTypeDefaultDescription
eyebrowstring
heading*string
bodystringshort standfirst beside the stage
statValue*stringpayoff the lift vector earns at the design angle, e.g. '3.2× lift'
statLabelstring'LIFT'mono label on the vector readout
maxAnglenumber14design angle of attack in degrees the scrub sweeps to
streamlineCountnumber9streamlines in the family; halved below 480px
scrubLengthnumber2.5section height as a multiple of the viewport

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Wind Tunnel component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/scroll-wind-tunnel`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Wind Tunnel require?

Wind Tunnel uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Wind Tunnel to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services