Dashboard metric row
Four KPI tiles, two of them with inverted trend semantics.
Live preview
Source
This exact file renders the preview above.
components/blocks/sections/dashboard/metric-row.tsx
components/ui/metric.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
A metric row that colours every increase green is actively misleading. Latency and error rate use invertTrend, so a rise is correctly shown as a regression.
- Four tiles. A fifth pushes the row to two lines at every common width.
- Always pair the delta with a comparison period.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Four tiles
- Sparklines
- Inverted trends
Accessibility
- Description lists
- Each tile pairs label and value programmatically.
- Decorative sparklines
- Sparkline SVGs are aria-hidden; the number is the content.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All sectionsMetric
A KPI tile with trend direction, invertible "good" semantics and a decorative sparkline.
starterFeatured4 variantsDashboard chart panel
An inline-SVG bar chart with the series also exposed as a real table.
intermediate3 variantsAdmin starter
An internal console: overview, a filterable member table, orders, analytics and settings — all at compact density on the same components as the marketing starters.
advancedFeatured4 variants