trend_card library

Public import for SkdxTrendCard and its supporting types.

Classes

SkdxTrendCard
KPI with formatted value, explicit trend direction/intent and chart slot. changeLabel must describe the movement accessibly (e.g. "Costs decreased 8% since last month"). The arrow is decorative; color is never the only cue. The optional sparkline is supplied by the application, with its own summary.

Enums

SkdxMetricIntent
Metric delta intent is caller supplied, never inferred from numeric sign.
SkdxTrendDirection
Numeric movement and business impact are independent concepts. A decrease in costs can have positive intent, for example.