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

Components / Product

Sparkline — Implementation

One-line trend

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 ffadd6f0db44…
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 SparklineProps in components/_types.d.ts.

proptypedefaultdoc
dataArray<number | { value: number }>[]
widthnumber160
heightnumber44
tone"primary" | "success" | "warning" | "error" | "info"primary
showAreabooleantrue
unitstring
labelstring—
styleReact.CSSProperties—

Code

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

jsx · import
import { Sparkline } from "./components/data/Sparkline.jsx";
jsx · Sparkline.prompt.md
<Sparkline label="일별 호출" data={[120,143,131,180,205,198,240]} unit="k" />

Token bindings

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

--primary, --state-

Source