Metrics

MetricCard with a 3px source accent, MetricValue, MetricSummary and the count badge used by the source accordion.

Figma: 10 / Components / Metrics
Total subscribers11,000

Usage

Source: src/components/ui/metrics.tsx
import { MetricBadgeCount, MetricCard, MetricSummary, MetricValue } from '@/components/ui/metrics'
<MetricCard label='Revenue' value='$54,000' accent='positive' />

Source accents

The accent matches the source color used in charts, so a metric and its series always agree.
Facebook Direct4,900
Messenger Ads4,500
Unsubscribes−500

With an action

An arrow button opens the drawer behind the metric.
Revenue$54,000

MetricSummary and MetricValue

Values in a row with a 24px gap, in Poppins / text-4xl / semibold.
Facebook revenue$608,000
Instagram revenueRevenue from Instagram fundraisers$101,000
Donors2,840

MetricBadge/Count

Messenger subscriber counts, with an optional share.
63412034%

When to use

When to reach for it, and when to use something else.

Use it for

Complete: Headline numbers at the top of dashboards and drawers.
Complete: Source accents that match the chart series.

Avoid

Not complete: More than four metric cards in a row.
Not complete: Accents that do not correspond to a series.

MetricCard

PropTypeDefaultDescription
labelReactNode–What is measured.
valueReactNode–The formatted value.
accent'positive' | 'negative' | 'facebook' | 'messenger' | 'platform' | 'challenges' | 'instagram' | 'other' | 'birthdays' | 'misc''positive'Source color of the 3px accent.
actionsReactNode–AvatarGroup or an arrow button.
size'default' | 'compact''default'compact for drawers.

MetricValue

PropTypeDefaultDescription
labelReactNode–What is measured.
valueReactNode–The formatted value.
infostring–Optional explanation behind an info icon.

GoodUnited design system. The Figma file is the source of truth for every color, type size and component.

Made with Modulify