Number Ticker

Overview

A rolling digit ticker that counts to a value with per-digit stagger, padding and blur.

This data component is intended for interfaces that need a rolling digit ticker that counts to a value with per-digit stagger, padding and blur, analytics dashboards, and reporting views. Its implementation is provided as editable source so the final behavior and styling stay inside your project.

Technologies

React
TypeScript
Tailwind CSS
Motion

Detected package dependencies: motion, clsx, tailwind-merge.

@spectrumui/number-ticker

Monthly revenue

$48,250

Each digit rolls to its new value.

Installation

Login to view commandCreate a free account to access the install command

Usage

import { NumberTicker } from "@/components/motion/number-ticker"
<NumberTicker value={48250} prefix="$" locale blur />

API Reference

NumberTicker

beUI's Number Ticker (beui.dev, MIT), installed from its shadcn registry into components/motion. Each digit rolls vertically to its new value with a small stagger; group separators and a prefix or suffix stay put.

PropTypeDefaultDescription
*valuenumber-Value to display
padnumber-Digits to pad to on the left
durationnumber-Per-digit roll duration in seconds
staggernumber-Stagger between digits in seconds
startOnViewboolean-Only roll once the element enters the viewport
prefixstring-Text before the digits, e.g. "$"
suffixstring-Text after the digits, e.g. "%"
blurboolean-Add a small blur during rolls
localeboolean-Insert locale group separators
format(value: number) => string-Custom formatter (client-only)
classNamestring-Classes for the wrapper
digitClassNamestring-Classes for each digit slot

Use cases

  • interfaces that need a rolling digit ticker that counts to a value with per-digit stagger, padding and blur
  • analytics dashboards
  • reporting views

Features

  • Copy-paste source that remains in your repository
  • TypeScript source included with the component
  • Tailwind CSS classes editable in the component source
  • Animation implemented with Motion
  • Reduced-motion handling present in the source

Accessibility

  • The source includes ARIA attributes or roles; preserve them when customizing the component.
  • The source checks reduced-motion preferences or includes motion-reduce styles.
  • Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.

Customization

  • Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
  • Use the documented className surface for local layout adjustments, then edit the source for structural changes.
  • Adjust Motion transitions in the source and keep the reduced-motion behavior aligned with the final interaction.

Number Ticker FAQ

Is Number Ticker free to use in commercial projects?

Yes. The public Number Ticker source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.

How do I install Number Ticker?

Run npx shadcn@latest add @spectrumui/number-ticker. The page also exposes the source for manual installation.

Does Number Ticker require Motion?

Yes. Motion usage was detected in the documented source or registry dependencies for Number Ticker.

Does Number Ticker use shadcn/ui or Radix UI?

No shadcn/ui or Radix UI dependency was detected in the documented Number Ticker source.

Can I use Number Ticker in Next.js?

The documented React source is used in this Next.js application. Keep its use client directive when copying it into the App Router. Install the detected dependencies and verify any application-specific data or image configuration.

What accessibility checks should I run for Number Ticker?

The source includes ARIA markup, reduced-motion handling. Test the finished interface with keyboard and screen-reader workflows.

Work with me