Component packs › Odo › Odometer
Every digit is a wheel that carries like a gear: small changes tick over, a big jump spins the low wheels into a blur and the row settles.
Odometer is a counter from Odo, a component pack with 6 number counters: Number counters on physical wheels: they carry like gears, spin through big jumps and settle. Price: $2 for the whole pack.
Built with: drum wheels, gear carry, motion blur at speed.
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 |
|---|---|---|---|
value | number | 48213.6 | Distance. Default 48213.6. |
unit | string | "km" | Unit after the wheels. Default "km". |
label | string | "Total" | Label over the window. Default "Total". |
digits | number | 5 | Whole wheels (tenths wheel extra). Default 5. |
readonly value: numbersetValue(value: number): voiddestroy(): voidimport OdoMeter from './OdoMeter';
<OdoMeter />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Number counters.