Lists
Spark table
A real table with a trailing sparkline and a signed delta.
| Metric | Value | Trend | Change |
|---|---|---|---|
| visitors | 4,368 | +133 | |
| pageviews | 10,240 | +345 | |
| visits | 4,987 | +135 | |
| events | 672 | +14 |
Props
| Property | Type | Default | Description |
|---|---|---|---|
data | SparkRow[] | — | Rows carry a series alongside the scalars, which ChartDatum cannot express — hence its own row type. |
labelKey | string | "label" | First column. |
dataKey | string | "value" | Numeric column. |
trendKey | string | "trend" | Field holding the row's series. Rows without one omit the spark. |
deltaKey | string | "delta" | Signed change, coloured by sign. |
label | string | "Name" | Header for the first column. |
variant | "sparkline" | "bars" | "area" | "plain" | "sparkline" | How the trend column draws: a stroke, one bar per point, or a filled stroke. plain drops the column for a dense provider-style list. |
className | string | — | Outer wrapper. |