Skip to content

Metric Card

The MetricCard displays a key metric with a title, value, and trend indicator. An optional graph area can be revealed via the showGraph prop with a named slot.

Props

PropTypeDefaultDescription
titleString'Companies Engaged'Label describing the metric
valueString | Number'146'The main metric value to display
trendString'100%'Trend percentage shown next to the direction arrow
trendDirectionString'up'Direction of the trend — 'up' (green) or 'down' (red)
trendLabelString'vs last month'Contextual label shown after the trend badge
showGraphBooleanfalseWhen true, renders the #graph slot on the right side of the card

Slots

SlotDescription
graphOptional graph content shown when showGraph is true

Basic Usage

html
<MetricCard
  title="Companies Engaged"
  value="146"
  trend="100%"
  trendDirection="up"
  trendLabel="vs last month"
/>

Companies Engaged

146

100%
vs last month

Trend Down

html
<MetricCard
  title="Churn Rate"
  value="3.2%"
  trend="12%"
  trendDirection="down"
  trendLabel="vs last month"
/>

Churn Rate

3.2%

12%
vs last month