Skip to content
kapable

Sparkline

Data display · 2 exports · v0.1.0 · showcase

Small server-rendered SVG trend shape with a required accessible label.

Browse 72 component families

Usage

Sparkline usage
<Sparkline values={perDay} label="Deploys per day, rising" tone="accent" />

API

Sparkline API

SparklineProps

Sparkline props
proptypenotes
valuesnumber[]The series, oldest first. One value draws just the "now" dot.
labelstringAccessible summary — say what the trend MEANS, not the numbers ("Deploys per day over two weeks, rising").
tone?SparklineToneLine hue; the app judges tone (default 'neutral').
fill?booleanTranslucent area fill under the line (default false — lines, not fills).
width?numberRendered size in px (defaults 96×28 — a word, not a figure).
height?number
mix?MixInput

More in Data display

More in Data display