MetricBreakdown
Chart
The decomposed-metric dashboard card: headline value, tone-aware rate, Sparkline trend, per-category share rows, and a chip footer.
Playground
Every control sets a real prop of MetricBreakdownProps. The JSX below updates as you go.
Web
iOS
Android
JSX · MetricBreakdownProps
Variants
2 examples from src/charts/metric-breakdown/metric-breakdown.md, each rendered live from its own JSX.
Anatomy
1
Frame
2
Value
3
Rate
4
Breakdown rows
Dimmed parts appear only in some states or variants.
Props
19 props on MetricBreakdownProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Tab
Focuses the plot
ArrowLeft
ArrowRight
Steps through points when inspectable
Escape
Clears the inspected point
Semantics
Roles
group
img
ARIA on web
aria-hidden
aria-label
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
It holds a preformatted headline value with its caption, an optional secondary rate readout under the headline (toned by rateSuccess, rateWarning, or rateDestructive), an optional trend strip drawn by the kit Sparkline at the header's end with a latest-value caption above it, per-category breakdown rows with proportional share meters and Stats-style deltas, and a chips footer for recent notable codes. Every section is independently optional, so one layout backs OAuth token issuance, API request volume, sign-up sources, and any metric that needs decomposition plus trend in one card.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--c1
--c2
--c3
--f-dp
--fd
--fm
--ft
--ln
--ok
--sf
--sf3
--sh-sm
--tx3