Number Flow
A high-craft animated number component with smooth spring physics, automatic formatting, currency symbols, and multi-framework support (React, Vue, Svelte).

Overview
Number Flow (number-flow.barvian.me) is an open-source animated number transitions component crafted with over 7,600+ GitHub Stars. It solves the subtle layout shift and animation jank common in numeric counters by animating individual character transitions smoothly using spring physics, locale-aware formatting, and fractional masking.
Key Features
- Spring-Tuned Character Transitions: Digits, commas, decimals, and currency symbols morph smoothly without jarring layout jumps.
- Full Multi-Framework Ecosystem: Native first-class packages for React (
@number-flow/react), Vue (@number-flow/vue), Svelte (@number-flow/svelte), and Vanilla JS. - Intl.NumberFormat Native: Built-in support for currencies, percentages, unit notations, and localized compact formatting.
- Zero-Layout Shift Layouts: Automatic layout measurement prevents surrounding UI elements from jittering during number ticks.
Installation & Quick Start
# Install React component
npm install @number-flow/reactimport React, { useState } from 'react';
import NumberFlow from '@number-flow/react';
export function RevenueMetric() {
const [value, setValue] = useState(14850.50);
return (
<div className="p-5 rounded-2xl bg-card border border-border flex flex-col gap-2">
<span className="text-xs font-medium text-muted-foreground">Total ARR</span>
<NumberFlow
value={value}
format={{ style: 'currency', currency: 'USD' }}
className="text-3xl font-bold font-mono text-foreground"
/>
</div>
);
}Why Choose Number Flow?
- Financial Dashboard Polish: Delivers Bloomberg / Stripe-grade ticker fidelity to pricing matrices, trading desks, and analytics cards.
- Accessible by Default: Screen readers read the true computed numeric value, not the animating SVG/DOM intermediate ticks.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stackKinetics (Colorion)
A library of 150+ spring-driven micro-interactions for web apps. Copy the CSS, React, or ready-made AI prompts to ship physics-based motion instantly.
23rd
An open-source shadcn/ui registry of opinionated, tasteful components by radiumcoders — WebGL shaders, playful 404s, and interactive showpieces you copy, paste, and own.
nxui (Vue)
A collection of 230+ beautiful animated Vue 3 components built with Tailwind CSS v4 and motion-v. Copy, paste, and ship with Nuxt 4 and shadcn-vue.