# Upstage Design System — Sparkline (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: /ko/components/product/sparkline/ · machine doc: /agent/components/product/sparkline.md
## Required references (read these)
- /components/data/Sparkline.jsx — implementation · sha256 ffadd6f0db44…
- /components/_types.d.ts — api · key SparklineProps
- /components/data/Sparkline.prompt.md — usage-note · sha256 ceb1c0323366…
- /kit/rules/a11y-contract.json — a11y · key Sparkline
## API (components/_types.d.ts SparklineProps)
- data?: Array<number | { value: number }> (default [])
- width?: number (default 160)
- height?: number (default 44)
- tone?: "primary" | "success" | "warning" | "error" | "info" (default primary)
- showArea?: boolean (default true)
- unit?: string (default )
- label?: string
- style?: React.CSSProperties
## Accessibility contract
- keys: -
- aria: role=img, aria-label(추이 요약)
## Unverified
- Browser behaviour is not verified here (static source check only).
무엇인가
Compact trend line for inline metrics. — _types.d.ts
Direction over time next to a number — no axes, no gridlines, no legend. Pair with `Stat`. 규칙 전문은 [chart-rules.json](../../rules/chart-rules.json). — Sparkline.prompt.md
선택지
prop 계약에서 허용값이 정해진 것만 싣는다. 기본값은 구현 파일의 함수 인자에서 읽었다.
| prop | 허용값 | default |
|---|---|---|
tone | primary · success · warning · error · info | primary |
출처
components/data/Sparkline.jsximplementation · sha256 ffadd6f0db44…components/_types.d.tsapi · SparklinePropscomponents/data/Sparkline.prompt.mdusage-note · sha256 ceb1c0323366…kit/rules/a11y-contract.jsona11y · Sparkline