OPUS/UI

Navigation

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

Live visitors

2,048

BTC / USD

$64,210.50

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/slot-counter.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs slot-counter

Usage

import { SlotCounter } from "@/components/opus/text/slot-counter";

<SlotCounter value={visitors} />

API

PropTypeDefaultDescription
valuenumber—Number to show.
format / localeIntl.NumberFormatOptions / string—Formatting.
durationnumber900Base roll time (ms).

Command palette