Skip to main content
Clever Ops

Lock Chamber Hero

The hero rises like a vessel in a canal lock, gates seal, the chamber fills, and a token-primary waterline carries the content deck to the upper level. A hydraulic entrance for React and Tailwind.

Preview & code

Loading Lock Chamber Hero preview

Installation

pnpm dlx shadcn@latest add @cleverui/hero-lock-chamber

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

Usage

tsx
import { HeroLockChamber } from '@/components/blocks/hero-lock-chamber'
Exampletsx
import { HeroLockChamber } from '@/components/blocks/hero-lock-chamber'

export default function HeroLockChamberDemo() {
  return (
    <HeroLockChamber
      eyebrow="Canal works · Lock 3"
      title="Rise with the waterline."
      description="Lower gates seal, the chamber fills 4.2 m, and the content deck rides a primary waterline to the upper datum, hydraulics, not a spring."
      primaryCta={{ label: 'Enter the chamber', href: '#' }}
      secondaryCta={{ label: 'Lockage tables', href: '#' }}
      caption="LOCK 3 · RISE 4.2 M"
    />
  )
}

API reference

HeroLockChamber accepts the following props.

PropTypeDefaultDescription
eyebrowstringmono micro-label above the headline
title*string
descriptionstring
primaryCta{ label: string; href: string }
secondaryCta{ label: string; href: string }
captionstring'LOCK 3 · RISE 4.2 M'mono lockage caption stamped at the upper datum

…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 Lock Chamber Hero component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/hero-lock-chamber`. 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 Lock Chamber Hero require?

Lock Chamber Hero 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 Lock Chamber Hero 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