Kaupvik KeelKaupvik Keel
Open Source · v0.7.1

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

PropertyTypeDefaultDescription
labelstringRequiredMetric name, shown with a dotted definition affordance.
valuestring | numberRequiredVerified value; use an em dash for unknown.
detail / definitionstringOptionalShort scope remains visible; full definition is available by hover and keyboard focus.
iconReactNodeOptionalDecorative 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.