Component packs › Slate › Tally Counter
Counts in tally marks: four strokes down and the fifth struck across; minus rubs out the last.
Tally Counter is a counter from Slate, a component pack with 6 chalkboard components: Controls written in chalk on a slate: strokes that draw themselves and rub out to dust. Price: $2 for the whole pack.
Built with: tally grouping, draw and rub out, keyboard steps.
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 | ||
min | number | ||
max | number | ||
label | string | ||
width | number | 340 | Board width in px. Default 340. |
dark | boolean | ||
onChange | (value: number) => void | ||
autoplay | number | false | Showcase mode: counts up and back every N ms while visible. |
value: numberdestroy(): voidimport TallyCounter from './TallyCounter';
<TallyCounter />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Checkboxes.