Stat Cards with Deltas
Metrics carrying the direction they moved, with the good direction declared per stat so a falling churn rate reads as a win — arrow and text, never colour alone.
A four-up metrics strip with 1px hairline dividers, built from a single gap-px grid so the rules stay crisp on any display.
components/stats-band.tsxnpx hoverlab add stats-band
Or over MCP, from your editor's agent — no account needed.
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Start a page with this section — add more, order them, and leave with the page source.
Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.
/**
* <StatsBand> — a four-up numeric strip for a landing page.
*
* Hairline-separated cells built from a single `gap-px` grid over a
* background, so the dividers stay 1px on every display without a border
* on each child fighting its neighbour.
*/
import * as React from 'react'
export interface Stat {
value: string
label: string
caption?: string
}
export interface StatsBandProps {
stats?: Stat[]
className?: string
}
const DEFAULT_STATS: Stat[] = [
{ value: '12,000+', label: 'Developers', caption: 'Shipping with it weekly' },
{ value: '99.99%', label: 'Uptime', caption: 'Trailing twelve months' },
{ value: '<40ms', label: 'Median latency', caption: 'Measured at the edge' },
{ value: '24/7', label: 'Support', caption: 'Real humans, every timezone' },
]
export function StatsBand({ stats = DEFAULT_STATS, className = '' }: StatsBandProps) {
return (
<section className={`mx-auto w-full max-w-7xl px-4 py-12 sm:px-6 lg:px-8 ${className}`}>
<div className="grid grid-cols-2 gap-px overflow-hidden rounded-2xl border border-border/60 bg-border/60 lg:grid-cols-4">
{stats.map((s) => (
<div
key={s.label}
className="min-w-0 bg-background/80 p-5 text-center backdrop-blur transition-colors hover:bg-background sm:p-6"
>
<div className="break-words text-3xl font-extrabold tracking-tight text-foreground sm:text-4xl">
{s.value}
</div>
<div className="mt-1 break-words text-sm font-semibold text-foreground/80">{s.label}</div>
{s.caption ? (
<div className="mt-0.5 break-words text-xs text-muted-foreground">{s.caption}</div>
) : null}
</div>
))}
</div>
</section>
)
}
bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.Drop it at components/stats-band.tsx and import it where you need the section:
import { StatsBand } from '@/components/stats-band'Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.
| Prop | Type | Default |
|---|---|---|
stats | Stat[] | DEFAULT_STATS, className = '' |
className | string | — |
The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.
<!--
Hairline Stats Band — markup from the Hoverlab catalog.
This is the block rendered once to HTML and wrapped as a component
file. It is not a port of the React source: the Tailwind classes carry
the design, which is the part that took the work, and they are the same
in every framework.
This block has no interactive behaviour, so nothing is missing.
-->
<section class="mx-auto w-full max-w-7xl px-4 py-12 sm:px-6 lg:px-8 ">
<div class="grid grid-cols-2 gap-px overflow-hidden rounded-2xl border border-border/60 bg-border/60 lg:grid-cols-4">
<div class="min-w-0 bg-background/80 p-5 text-center backdrop-blur transition-colors hover:bg-background sm:p-6">
<div class="break-words text-3xl font-extrabold tracking-tight text-foreground sm:text-4xl">12,000+</div>
<div class="mt-1 break-words text-sm font-semibold text-foreground/80">Developers</div>
<div class="mt-0.5 break-words text-xs text-muted-foreground">Shipping with it weekly</div>
</div>
<div class="min-w-0 bg-background/80 p-5 text-center backdrop-blur transition-colors hover:bg-background sm:p-6">
<div class="break-words text-3xl font-extrabold tracking-tight text-foreground sm:text-4xl">99.99%</div>
<div class="mt-1 break-words text-sm font-semibold text-foreground/80">Uptime</div>
<div class="mt-0.5 break-words text-xs text-muted-foreground">Trailing twelve months</div>
</div>
<div class="min-w-0 bg-background/80 p-5 text-center backdrop-blur transition-colors hover:bg-background sm:p-6">
<div class="break-words text-3xl font-extrabold tracking-tight text-foreground sm:text-4xl"><40ms</div>
<div class="mt-1 break-words text-sm font-semibold text-foreground/80">Median latency</div>
<div class="mt-0.5 break-words text-xs text-muted-foreground">Measured at the edge</div>
</div>
<div class="min-w-0 bg-background/80 p-5 text-center backdrop-blur transition-colors hover:bg-background sm:p-6">
<div class="break-words text-3xl font-extrabold tracking-tight text-foreground sm:text-4xl">24/7</div>
<div class="mt-1 break-words text-sm font-semibold text-foreground/80">Support</div>
<div class="mt-0.5 break-words text-xs text-muted-foreground">Real humans, every timezone</div>
</div>
</div>
</section>
What each framework gets across the whole catalog — effects convert properly; this rung is markup.
The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.
Want the whole screen instead of this one section? Open a page and copy it entire.
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse StatsCopying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
Metrics carrying the direction they moved, with the good direction declared per stat so a falling churn rate reads as a win — arrow and text, never colour alone.
Four figures in a hairline card next to the paragraph making the claim, each carrying an optional source line — for numbers that mean nothing without knowing lower than what, over how long, across how many.
The buyer’s current situation in one column and yours in the next, as a real table with scoped headers — the comparison they are actually making, which a delta against your own past cannot express.
The same measurement taken year after year down a vertical rail, each with the event that explains it — the shape for trajectory, which no snapshot of four numbers can claim.
Performance figures with the measurement method printed beside each one, so a sceptical reader can check rather than take them.
The compliance and security facts a procurement reviewer asks for, stated as figures with their scope rather than as badges.