Skip to content

Number Ticker

Digits that roll to the new value, for run costs, token counts and live metrics.

On this page

Examples

Installation

npx knowns-ui@latest add number-ticker
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

value
number
The number. Each change rolls the digits that differ.
from
number
Roll up from this the first time it comes into view.
format
Intl.NumberFormatOptions | (n) => string
Currency, percent, compact, decimals, or your own formatter.
locale
string
Defaultthe browser's
Locale for Intl.NumberFormat.
duration
number (ms)
Default900
Time for a digit to roll; higher places settle a touch later.
prefix / suffix
string
Fixed text around the number.
Accessibility
-
Screen readers get the full text once; the animated layer is aria-hidden. prefers-reduced-motion shows the final text. Pauses offscreen, in hidden tabs and on paused.

When to use

When to use

  • Live metrics such as cost, tokens or counts that roll to the new value.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Number Ticker to my app and wire it to my own data.
  • I need live metrics such as cost, tokens or counts that roll to the new value. Set that up with the Knowns UI Number Ticker.
  • Which Number Ticker props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "number-ticker" }) and search_docs({ query: "number ticker" }).

Need help?

Stuck on Number Ticker, or found something off? We read every message.