Display one dashboard metric and an optional change; the application supplies the data and calculates comparisons.
How to use
Arrange multiple MetricCard components for a dashboard; use Card for general content. The caller provides values and comparisons. Use emphasis to select the primary value and trend to describe its direction.
Card is the actual host. Callers own layout and formatted values. Empty values display "-", real zero remains visible, and omitting change removes its region. The default background is Background/3, configurable through --snowui-metric-card-background-override. With emphasis="change", change is on the left and the current value on the right. Include a sign or text to convey direction without color alone. MetricCard does not fetch data or calculate comparisons and supports SSR.