Component packs › Cogwork › Crank Stepper

Crank Stepper

Turn the crank and its gear drives the number drum round, a sixth of a turn per number, with detents and stops at the ends.

Crank Stepper is a stepper from Cogwork, a component pack with 6 clockwork controls: Controls run by real gears: they mesh, wind, tick and ratchet. Price: $2 for the whole pack.

Built with: crank by drag, gear-driven drum, detent snap.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Crank Stepper props

PropTypeDefaultDescription
valuenumber
minnumber
maxnumber
labelstringAccessible name and the line under the drum.
disabledboolean
onChange(value: number) => void
theme'light' | 'dark'
autoplaynumber | falseShowcase mode: cranks a few steps every N ms while visible.

Methods on the ref

Use it in React

import CrankStepper from './CrankStepper';

<CrankStepper />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Cogwork

Good for: Skeuomorphic UI.