mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
* 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
22 lines
414 B
Plaintext
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" />
|