Cards
Usage Sparkline Card
A compact usage chart card for token volume, traffic, or event trends.
usagesparklinemetrics
Installation
Copy and paste the code into your project.
Accessibility notes
Include the numeric trend as text because the bars are decorative.
Usage trend
12.4k+18%
Preview accent
TypeScript
const bars = ["h-5", "h-8", "h-6", "h-10", "h-7", "h-12", "h-9"];
export function UsageSparklineCard() {
return (
<section className="w-full max-w-xs rounded-lg border border-white/12 bg-[#0b0f14]/86 p-5 shadow-2xl">
<p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#40E0D0]">Usage trend</p>
<div className="mt-4 flex h-16 items-end gap-2">
{bars.map((bar, index) => (
<span key={`${bar}-${index}`} className={`${bar} flex-1 rounded-t bg-gradient-to-t from-[#40E0D0] to-[#a78bfa]`} />
))}
</div>
<div className="mt-4 flex items-end justify-between">
<span className="text-3xl font-black text-white">12.4k</span>
<span className="rounded-full bg-[#40E0D0]/12 px-2.5 py-1 text-xs font-semibold text-[#d8fffb]">+18%</span>
</div>
</section>
);
}Usage
<UsageSparklineCard />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
Latency budget
271msQueue18ms
Model212ms
Render41ms
Cards
Latency Budget Card
A stacked performance card for queue, model, and render timing budgets.
latencyperformancemetrics
Quota forecast
Monthly requests
1
2
3
4
5
6
7
Projected usage
824k
Limit
1M
Cards
Quota Forecast Card
A compact usage forecast with a seven-day trend, projected total, and plan limit.
quotaforecastusage