Component packs › Spool › Tape Counter
Black drums roll like a deck counter: higher drums move only while the one below carries from 9 to 0, and reset spins each forward to zero.
Tape Counter is a counter from Spool, a component pack with 6 deck controls: Controls built from the mechanics of a tape deck: latching keys, reels, drums and a VU needle. Price: $2 for the whole pack.
Built with: odometer carry, heart-cam reset, cylinder-shaded drums.
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 | 0 | Starting value. Default 0. |
digits | number | 4 | Number of drums, 3–6. Default 4. |
label | string | "Counter" | Accessible name. Default "Counter". |
resetButton | boolean | true | Show the reset button. Default true. |
onChange | (value: number) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: runs like tape playing, resets every N ms. |
readonly value: numbersetValue(v: number): void: Roll to a value.add(n?: number): voidreset(): voiddestroy(): voidimport TapeCounter from './TapeCounter';
<TapeCounter />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.