Skip to main content

MetricCard

MetricCard — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

MetricCard — Prism component.

Accessibility

When the whole card is actionable, expose a single accessible name and make it reachable with Tab + Enter. Decorative imagery uses empty alt.

Import

const { MetricCard } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
eyebrowReact.ReactNodeSmall category label above the number.
valueReact.ReactNodeThe metric itself, e.g. "€248,120" or "1,284".
unitReact.ReactNode
deltaReact.ReactNodeDelta label, e.g. "12.4%".
deltaDirection"up" | "down" | "flat"
iconReact.ReactNodeOptional leading icon (shown top-right instead of delta).
sparklineDatanumber[]Numbers for the built-in sparkline.
sparklineReact.ReactNodeOr supply a custom chart node.
actionsReact.ReactNode
classNamestring