RemotionUI

Stat Card

A number landing — ring, counter, label, and the change behind it.

SceneScenes

stat-card30fps · 960×540
Install
$ npx remotion-ui@latest add stat-card

The ring fills while the counter rolls up under it, the label settles, and delta lands last — after the number it qualifies has stopped moving.

Pass max when the value is a share and the ring becomes a meter filling to value / max. Leave it out for a count and the ring draws a full sweep instead, so "3 dependencies" is not rendered as 3% of something.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/scenes/stat-card
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: value, max, suffix, prefix, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { StatCard } from "@/remotion/scenes/stat-card"; <StatCard value={98} label="Satisfaction" suffix="%" />

API Reference

PropTypeDescription
valuenumberNumber the counter lands on.
maxnumberWhat the value is out of. With it the ring is a meter; without it the ring draws a full sweep.
suffixstringUnit after the number.
prefixstringUnit before the number.
decimalsnumberDecimal places while counting and at rest.
labelstringMetric label.
captionstringLine under the label — source, window, cohort.
deltanumberChange against the previous period; lands after the number settles.
deltaSuffixstringUnit on the delta chip.
accentColorstringRing, suffix, and delta colour.
theme"dark" | "light"Surface palette.
speednumberAnimation speed multiplier.

Related