Component packs › Spool › Tape Counter

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.

Tape Counter props

PropTypeDefaultDescription
valuenumber0Starting value. Default 0.
digitsnumber4Number of drums, 3–6. Default 4.
labelstring"Counter"Accessible name. Default "Counter".
resetButtonbooleantrueShow the reset button. Default true.
onChange(value: number) => void
darkboolean
autoplaynumber | falseShowcase mode: runs like tape playing, resets every N ms.

Methods on the ref

Use it in React

import TapeCounter from './TapeCounter';

<TapeCounter />

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

More in Spool

Good for: Skeuomorphic UI.