Component packs › Cogwork › Gear Train Loader
Four spoked gears in mesh, each at the speed its teeth give it; done() lets the train coast down on its own inertia.
Gear Train Loader is a loader 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: true gear ratios, teeth stay in phase, inertia run-down.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | Accessible name while loading. | |
doneText | string | ||
done | boolean | Start stopped and finished. | |
speed | number | Turns per second of the big gear. | |
theme | 'light' | 'dark' | ||
autoplay | number | false | Kept for the showcase; the train always runs while loading. |
readonly loading: booleandone(): voidstart(): voiddestroy(): voidimport GearTrainLoader from './GearTrainLoader';
<GearTrainLoader />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.