Files
supabase/apps/design-system/content/docs/fragments/metric-card.mdx
kemal.earth 06ac401181 feat(design-system): add <MetricsCard /> component (#40355)
* feat: add metrics block setup

* feat: base block and props for metrics block

* chore: add to do

* feat: simplify metric block component further

* feat: basic layout done

* feat: metrics card orientation

* feat: add variant for differential number

* feat: basic sparkline for my metrics card

* feat: some polish for the sparkline

* feat: with xaxis for the sparkline

* feat: remove the xaxis line

* feat: add loading states

* feat: rename to metricscard

* fix: hydration issues

* feat: add tooltip to sparkline

* feat: add examples to docs

* fix: remove hasLink and hasTooltip props

* fix: re-add accidental removal of timestamps

* fix: add timestamps in correct location

* fix: add screen reader only and aria

* fix: text contrast on label in light mode

* fix: correct icon size

* chore: smol copy update

* chore: de-pluralize naming of component

* chore: rebuild packages
2025-11-14 11:40:57 +00:00

22 lines
414 B
Plaintext

---
title: Metric Card
description: A card to display pull out metrics at a glance.
fragment: true
---
<ComponentPreview name="metric-card" peekCode wide />
## Examples
### Minimal
<ComponentPreview name="metric-card-minimal" />
### Minimal Horizontal
<ComponentPreview name="metric-card-minimal-horizontal" />
### With Icon, Link and Tooltip
<ComponentPreview name="metric-card-with-icon-link-tooltip" />