Metric card
Compact native statistic with an accessible definition and a precise data scope.
Interactive example
Loading Polaris web components…
Usage
<MetricCard label="Ready to settle" value="$120" detail="Verified paid orders" definition="Net merchandise commission after verified refunds; excludes shipping and tax." />Properties
| Property | Type | Default | Description |
|---|---|---|---|
| label | string | Required | Metric name, shown with a dotted definition affordance. |
| value | string | number | Required | Verified value; use an em dash for unknown. |
| detail / definition | string | Optional | Short scope remains visible; full definition is available by hover and keyboard focus. |
| icon | ReactNode | Optional | Decorative icon only. |
Design & interaction
Keep data scope visible. Unknown is not zero. A definition explains the metric, never hides a blocking workflow.
Accessibility
Native tooltip is linked by interestFor; the title is keyboard focusable. Native number is labelled by its section.
Open-source source
Available in github.com/Kaupvik/kaupvik-polaris ↗. Host apps supply authentication, native persistence, and read-back state.