#179
Three cards
A KpiGrid holding three KPI cards to show how the grid lays out an odd number of items.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Three cards" pattern (@codeatlasdev/ui demo #179, layout/kpi-grid) in my app.
Call get_demo({ ids: ["#179"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Dashboards with three headline metrics, where the grid should still look balanced.
Keep these library parts, with the props and tokens the demo uses:
- KpiCard, KpiGrid from "@codeatlasdev/ui"
Behaviour to keep:
- `<KpiGrid>` with 3 `KpiCard` items
- `<KpiCard title="Revenue" value="$112k" trend={18.4} icon={DollarSign} />`
- `<KpiCard title="Users" value="24.8k" trend={12.1} icon={Users} />`
- `<KpiCard title="Growth" value="34" unit="%" trend={5.6} icon={TrendingUp} />`
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
How it is built
- `<KpiGrid>` with 3 `KpiCard` items
- `<KpiCard title="Revenue" value="$112k" trend={18.4} icon={DollarSign} />`
- `<KpiCard title="Users" value="24.8k" trend={12.1} icon={Users} />`
- `<KpiCard title="Growth" value="34" unit="%" trend={5.6} icon={TrendingUp} />`
Related
Loading source.