Skip to main content
Clever Ops

Gearworks

Scroll cranks a meshed SVG gear train, exact tooth ratios counter-rotate hairline gears until the primary dial needle lands on your stat. React and Tailwind tokens, native scroll scrub, no assets.

Preview & code

Loading Gearworks preview

Installation

pnpm dlx shadcn@latest add @cleverui/scroll-gearworks

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

Usage

tsx
import { ScrollGearworks } from '@/components/blocks/scroll-gearworks'
Exampletsx
import { ScrollGearworks } from '@/components/blocks/scroll-gearworks'

export default function ScrollGearworksDemo() {
  return (
    <ScrollGearworks
      eyebrow="Kinematics · Line 07"
      heading="Crank the train. Earn the dial."
      body="Three meshed spur gears with exact tooth ratios counter-rotate under native scroll. The final gear drives a hairline instrument dial until the needle locks on throughput."
      gears={[36, 18, 24]}
      statLabel="OUTPUT"
      statValue="3.2× throughput"
      scrubLength={2.5}
    />
  )
}

API reference

ScrollGearworks accepts the following props.

PropTypeDefaultDescription
eyebrowstring
heading*string
bodystringshort standfirst beside the stage
gearsnumber[]tooth counts, 3–5 gears; defaults to a 36/18/24 train
statLabelstring'OUTPUT'mono label on the dial
statValue*stringpayoff the needle lands on, e.g. '3.2× throughput'
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 Gearworks 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-gearworks`. 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 Gearworks require?

Gearworks 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 Gearworks 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