Add MetricCard and MetricCardGroup components#464
Conversation
commit: |
Docs PreviewCommit: |
d118696 to
0c38363
Compare
|
/bonk |
Summary of PR #464Title: Add MetricCard and MetricCardGroup components What This PR AddsTwo new components for displaying metric data:
Key Changes
Automated Feedback
Review Checklist Status
Next Steps: Design team review for visual compliance before merge. |
|
thanks for putting this together! we're cleaning up the pr backlog and this would need a rebase plus a fresh api and design review against current main. are you still planning to work on it? if not we'll close it for now on july 28, but you're always welcome to reopen it when ready. |



















































Adds two new components for displaying metric data with optional trend indicators, sparklines, and semantic color variants.
hreforonClick.MetricCard Props
labelstringvalueReactNodeloadingorerroris trueunitstring"%","ms"trendMetricCardTrendsparklineMetricCardSparklinehrefstringonClickMouseEventHandlerhrefloadingbooleanfalseerrorbooleanfalsetooltipReactNodetooltipIconComponentTypeMetricCardTrend
direction"up" | "down" | "neutral"labelstring"13.8%","2.3pp"lessIsBetterbooleanisNeutralbooleanMetricCardSparkline
datanumber[]theme"success" | "danger" | "neutral"colorstringyMinnumberyMaxnumberMetricCardGroup Props
titleReactNodeorientation"horizontal" | "vertical""horizontal"childrenReactNode