# Upstage Design System — Stat (product)
- context: product · group: data
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /en/components/product/stat/ · machine doc: /agent/components/product/stat.md
## Required references (read these)
- /components/data/Stat.jsx — implementation · sha256 ba87cd3c0f27…
- /components/_types.d.ts — api · key StatProps
- /components/data/Stat.prompt.md — usage-note · sha256 eb2ab3e83b61…
- /kit/rules/a11y-contract.json — a11y · key Stat
## API (components/_types.d.ts StatProps)
- label?: React.ReactNode
- value?: React.ReactNode
- unit?: React.ReactNode
- delta?: number
- deltaTone?: "success" | "error" | "warning" | "gray" | "brand" — 기본은 부호에 따라 success/error. "brand"는 브랜드 accent로 중립 표현한다.
- caption?: React.ReactNode
- trailing?: React.ReactNode
- align?: "left" | "center" (default left)
- style?: React.CSSProperties
## Accessibility contract
- keys: -
- aria: -
- notes: delta 방향을 .ds-sr-only 텍스트로 말한다 — 화살표 색만으로 전달하지 않는다
## Unverified
- Browser behaviour is not verified here (static source check only).
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.
| prop | type | default | doc |
|---|---|---|---|
label | React.ReactNode | — | |
value | React.ReactNode | — | |
unit | React.ReactNode | — | |
delta | number | — | |
deltaTone | "success" | "error" | "warning" | "gray" | "brand" | — | 기본은 부호에 따라 success/error. "brand"는 브랜드 accent로 중립 표현한다. |
caption | React.ReactNode | — | |
trailing | React.ReactNode | — | |
align | "left" | "center" | left | |
style | React.CSSProperties | — |
Code
One import line plus the example code from the usage note.
import { Stat } from "./components/data/Stat.jsx";<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
components/data/Stat.jsximplementation · sha256 ba87cd3c0f27…components/_types.d.tsapi · StatPropscomponents/data/Stat.prompt.mdusage-note · sha256 eb2ab3e83b61…kit/rules/a11y-contract.jsona11y · Stat