Skip to content

@maxhealth.tech/prefab / auto / AutoMetricDef

Interface: AutoMetricDef

Defined in: auto/metrics.ts:14

Properties

label

ts
label: string;

Defined in: auto/metrics.ts:16

Metric label (e.g. 'Revenue').


value

ts
value: string;

Defined in: auto/metrics.ts:18

Metric value (e.g. '$42K').


delta?

ts
optional delta?: string;

Defined in: auto/metrics.ts:20

Delta string (e.g. '+12%').


trend?

ts
optional trend?: "flat" | "up" | "down";

Defined in: auto/metrics.ts:22

Trend direction.


trendSentiment?

ts
optional trendSentiment?: "positive" | "negative" | "neutral";

Defined in: auto/metrics.ts:24

Trend sentiment (positive = green, negative = red).


description?

ts
optional description?: string;

Defined in: auto/metrics.ts:26

Description text below the metric.


sparkline?

ts
optional sparkline?: number[];

Defined in: auto/metrics.ts:28

Sparkline data points.

Released under the MIT License.