Slot Counter
An odometer — every digit is a 0–9 column that rolls with a springy overshoot when the value changes.
cssintl2 files · 62 locdeps: clsx, tailwind-merge
Installation
With the shadcn CLI, pointing at this platform’s registry:
npx shadcn@latest add https://opusui.131199999.xyz/r/slot-counter.jsonOr offline, straight from your opus55 checkout (copies every file it needs):
node ../tailwind_component/opus55/scripts/add.mjs slot-counterUsage
import { SlotCounter } from "@/components/opus/text/slot-counter";
<SlotCounter value={visitors} />API
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | Number to show. |
| format / locale | Intl.NumberFormatOptions / string | — | Formatting. |
| duration | number | 900 | Base roll time (ms). |