LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Stat

Components / Product

Stat — Implementation

One key figure

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 ba87cd3c0f27…
Source language
KO · not translated

Supported environment

The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.

API

Copied from StatProps in components/_types.d.ts.

proptypedefaultdoc
labelReact.ReactNode—
valueReact.ReactNode—
unitReact.ReactNode—
deltanumber—
deltaTone"success" | "error" | "warning" | "gray" | "brand"—기본은 부호에 따라 success/error. "brand"는 브랜드 accent로 중립 표현한다.
captionReact.ReactNode—
trailingReact.ReactNode—
align"left" | "center"left
styleReact.CSSProperties—

Code

One import line plus the example code from the usage note.

jsx · import
import { Stat } from "./components/data/Stat.jsx";
jsx · Stat.prompt.md
<Stat label="월 호출" value="1.24M" delta={12.4} caption="지난달 대비" trailing={<Sparkline data={series} />} />

Token bindings

Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.

--accent, --accent-foreground, --font-sans, --foreground, --muted, --muted-foreground, --state-, --tracking-headline, --tracking-label

Source