Skip to content

Sparkline

const Sparkline: (props) => ReactElement

Defined in: react/components/data/sparkline.tsx:25

A one-row inline micro-chart () for a stream of numbers — tokens/sec, latency, cost — sized to data.length and showing the most recent values when constrained narrower.

<Sparkline data={[3, 5, 2, 8, 6, 9]} showValue />

SparklineProps

ReactElement