Cards
Latency Budget Card
A stacked performance card for queue, model, and render timing budgets.
latencyperformancemetrics
Installation
Copy and paste the code into your project.
Accessibility notes
Every timing value is shown as text so the bars are supporting visuals only.
Latency budget
271msQueue18ms
Model212ms
Render41ms
Preview accent
TypeScript
const checkpoints = [
{ label: "Queue", value: "18ms", width: "w-[18%]" },
{ label: "Model", value: "212ms", width: "w-[62%]" },
{ label: "Render", value: "41ms", width: "w-[28%]" },
];
export function LatencyBudgetCard() {
return (
<section className="w-full max-w-sm rounded-lg border border-white/12 bg-white/[0.06] p-5 shadow-2xl backdrop-blur">
<div className="flex items-center justify-between gap-3">
<p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#40E0D0]">Latency budget</p>
<span className="rounded-full bg-[#40E0D0]/12 px-2.5 py-1 text-xs font-semibold text-[#d8fffb]">271ms</span>
</div>
<div className="mt-4 space-y-3">
{checkpoints.map((checkpoint) => (
<div key={checkpoint.label}>
<div className="flex justify-between text-xs font-semibold text-slate-300">
<span>{checkpoint.label}</span>
<span>{checkpoint.value}</span>
</div>
<div className="mt-1.5 h-2 overflow-hidden rounded-full bg-[#1b1b1d]">
<div className={`${checkpoint.width} h-full rounded-full bg-gradient-to-r from-[#40E0D0] to-[#fb923c]`} />
</div>
</div>
))}
</div>
</section>
);
}Usage
<LatencyBudgetCard />Related components
Eval radar
liveAccuracy
96
Latency
42ms
Grounding
91
Cards
Eval Radar Card
A live evaluation card for accuracy, latency, grounding, and release-readiness signals.
evalmetricsquality
- Runs
- 1.8k
- Pass
- 98%
- Cost
- $42
Cards
Stat Strip
A dense row of metrics for build dashboards, model monitoring, and usage reports.
statsmetricsdashboard
Usage trend
12.4k+18%
Cards
Usage Sparkline Card
A compact usage chart card for token volume, traffic, or event trends.
usagesparklinemetrics