Skip to main content
Clever Ops

Shutter Timing Bench

A focal-plane shutter bench for React, pick a speed, fire at a moving target and every plate keeps honest motion smear on a contact sheet. Tailwind tokens, keyboard native.

Preview & code

Loading Shutter Timing Bench preview

Installation

pnpm dlx shadcn@latest add @cleverui/shutter-timing-bench

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

Usage

tsx
import { ShutterTimingBench } from '@/components/ui/shutter-timing-bench'
Exampletsx
import { ShutterTimingBench } from '@/components/ui/shutter-timing-bench'

export default function ShutterTimingBenchDemo() {
  return (
    <div className="mx-auto w-full max-w-3xl px-4 py-10 sm:px-6 sm:py-14">
      <p className="mb-4 font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground sm:text-xs">
        Spectacle · exposure instrument
      </p>
      <h2 className="mb-6 text-2xl font-semibold tracking-tight text-balance sm:text-3xl">
        Fire when the carriage is sharp enough.
      </h2>
      <ShutterTimingBench
        defaultSpeedIndex={3}
        targetVelocity={240}
        seed={7}
        caption="FOCAL PLANE TEST · MK II"
        ariaLabel="Shutter timing bench"
      />
      <p className="mt-4 text-sm leading-relaxed text-muted-foreground">
        Pick a stop, press the release. Smear is velocity times exposure, honest
        arithmetic on every plate. Sub-two-pixel streaks earn the SHARP lamp.
      </p>
    </div>
  )
}

API reference

ShutterTimingBench accepts the following props.

PropTypeDefaultDescription
defaultSpeedIndexnumber3initially selected stop among fixed speeds 1/15 … 1/1000
targetVelocitynumber240target carriage speed in px/s (clamped 120-480)
seednumber7deterministic mulberry32 plate grain
captionstring'FOCAL PLANE TEST · MK II'mono micro-label on the bench frame
ariaLabelstring'Shutter timing bench'accessible name for the bench group

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

Frequently asked questions

How do I install the Shutter Timing Bench component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/shutter-timing-bench`. 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 Shutter Timing Bench require?

Shutter Timing Bench 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 Shutter Timing Bench 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