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
Detected package dependencies: motion, clsx, tailwind-merge.
Monthly revenue
Each digit rolls to its new value.
Installation
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.
| Prop | Type | Default | Description |
|---|---|---|---|
*value | number | - | Value to display |
pad | number | - | Digits to pad to on the left |
duration | number | - | Per-digit roll duration in seconds |
stagger | number | - | Stagger between digits in seconds |
startOnView | boolean | - | Only roll once the element enters the viewport |
prefix | string | - | Text before the digits, e.g. "$" |
suffix | string | - | Text after the digits, e.g. "%" |
blur | boolean | - | Add a small blur during rolls |
locale | boolean | - | Insert locale group separators |
format | (value: number) => string | - | Custom formatter (client-only) |
className | string | - | Classes for the wrapper |
digitClassName | string | - | 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.
Related components
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.