Split Hero with Product Panel
Copy on the left, a drawn product panel on the right — the default hero for anything with an interface to show, with no image asset to host and no layout shift while it loads.
A centered hero closing on a definition list of scale numbers, with a masked grid wash behind it — for infrastructure and payments, where "how many" is the second question a buyer asks.
components/hero-metrics.tsxnpx hoverlab add hero-metrics
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.
Deploy once and forget the pager. We handle the regions, the failover and the certificate you were about to let expire.
Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.
/**
* <HeroMetrics> — a centered hero that lands on a row of proof numbers.
*
* The hero for a product whose argument is scale: infrastructure, payments,
* anything where "how many" is the question a buyer asks second. Folding
* the metrics into the fold rather than putting a stats band below it means
* the claim and its magnitude are read together instead of a scroll apart.
*
* The numbers are a `<dl>`, not a grid of divs. A definition list is
* exactly what a metric row is — a term and its value — and it gives a
* screen reader the pairing for free, where a div soup reads as six
* unrelated fragments.
*
* Each value is one string, not a number plus a separately styled suffix.
* Splitting "99.99%" into "99.99" and "%" so the unit can be dimmed puts a
* text node boundary mid-token, which is where screen readers start
* spelling things out.
*/
import * as React from 'react'
import { ArrowRight } from 'lucide-react'
export interface HeroMetric {
/** The number, formatted for display — "99.99%", "2.4B", "180ms". */
value: string
label: string
}
export interface HeroMetricsProps {
eyebrow?: string
heading?: string
subheading?: string
primaryLabel?: string
primaryHref?: string
secondaryLabel?: string
secondaryHref?: string
metrics?: HeroMetric[]
className?: string
}
const DEFAULT_METRICS: HeroMetric[] = [
{ value: '99.99%', label: 'Uptime, rolling 90 days' },
{ value: '2.4B', label: 'Requests served monthly' },
{ value: '180ms', label: 'Median global latency' },
{ value: '38', label: 'Edge regions' },
]
export function HeroMetrics({
eyebrow = 'Built for production traffic',
heading = 'Infrastructure that stops being interesting.',
subheading =
'Deploy once and forget the pager. We handle the regions, the failover and the certificate you were about to let expire.',
primaryLabel = 'Deploy your first app',
primaryHref = '#',
secondaryLabel = 'View the status page',
secondaryHref = '#',
metrics = DEFAULT_METRICS,
className = '',
}: HeroMetricsProps) {
return (
<section className={`relative overflow-hidden ${className}`}>
<div aria-hidden className="pointer-events-none absolute inset-0 -z-10">
<div className="absolute left-1/2 top-0 h-[26rem] w-[42rem] -translate-x-1/2 rounded-full bg-primary/15 blur-3xl border border-transparent" />
{/* Faint grid, masked so it fades out before the metric row. */}
<div
className="absolute inset-0 opacity-[0.06] [background-image:linear-gradient(to_right,currentColor_1px,transparent_1px),linear-gradient(to_bottom,currentColor_1px,transparent_1px)] [background-size:56px_56px] [mask-image:radial-gradient(ellipse_at_top,black,transparent_70%)]"
/>
</div>
<div className="mx-auto w-full max-w-5xl px-4 py-20 text-center sm:px-6 lg:px-8 lg:py-28">
{eyebrow ? (
<span className="inline-flex items-center gap-1.5 rounded-full border border-border/60 bg-card/60 px-3 py-1 text-xs font-medium text-muted-foreground backdrop-blur">
<span
aria-hidden
className="h-1.5 w-1.5 rounded-full bg-primary shadow-[0_0_0_3px] shadow-primary/20 border border-transparent"
/>
{eyebrow}
</span>
) : null}
<h1 className="mt-6 text-balance break-words text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl">
{heading}
</h1>
<p className="mx-auto mt-5 max-w-2xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">
{subheading}
</p>
<div className="mt-8 flex flex-col justify-center gap-3 sm:flex-row">
<a
href={primaryHref}
className="inline-flex h-12 items-center justify-center gap-1.5 rounded-xl bg-primary px-6 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/25 transition-transform hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
>
{primaryLabel}
<ArrowRight aria-hidden className="h-4 w-4 rtl:rotate-180" />
</a>
<a
href={secondaryHref}
className="inline-flex h-12 items-center justify-center rounded-xl border border-border/60 bg-card/60 px-6 text-sm font-semibold backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
>
{secondaryLabel}
</a>
</div>
{metrics.length > 0 ? (
<dl className="mt-16 grid grid-cols-2 gap-x-6 gap-y-10 border-t border-border/60 pt-10 lg:grid-cols-4">
{metrics.map((m) => (
<div key={m.label} className="min-w-0">
<dt className="sr-only">{m.label}</dt>
<dd>
<span className="block break-words text-3xl font-extrabold tracking-tight sm:text-4xl">
{m.value}
</span>
<span
aria-hidden
className="mt-2 block text-pretty text-xs leading-relaxed text-muted-foreground"
>
{m.label}
</span>
</dd>
</div>
))}
</dl>
) : null}
</div>
</section>
)
}
bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.Drop it at components/hero-metrics.tsx and import it where you need the section:
import { HeroMetrics } from '@/components/hero-metrics'6 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.
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 |
|---|---|---|
eyebrow | string | 'Built for production traffic' |
heading | string | 'Infrastructure that stops being interesting.' |
subheading | string | — |
primaryLabel | string | 'Deploy your first app' |
primaryHref | string | '#' |
secondaryLabel | string | 'View the status page' |
secondaryHref | string | '#' |
metrics | HeroMetric[] | DEFAULT_METRICS |
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.
<!--
Hero with Proof Metrics — 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="relative overflow-hidden ">
<div aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10">
<div class="absolute left-1/2 top-0 h-[26rem] w-[42rem] -translate-x-1/2 rounded-full bg-primary/15 blur-3xl border border-transparent"></div>
<div class="absolute inset-0 opacity-[0.06] [background-image:linear-gradient(to_right,currentColor_1px,transparent_1px),linear-gradient(to_bottom,currentColor_1px,transparent_1px)] [background-size:56px_56px] [mask-image:radial-gradient(ellipse_at_top,black,transparent_70%)]"></div>
</div>
<div class="mx-auto w-full max-w-5xl px-4 py-20 text-center sm:px-6 lg:px-8 lg:py-28">
<span class="inline-flex items-center gap-1.5 rounded-full border border-border/60 bg-card/60 px-3 py-1 text-xs font-medium text-muted-foreground backdrop-blur"><span aria-hidden="true" class="h-1.5 w-1.5 rounded-full bg-primary shadow-[0_0_0_3px] shadow-primary/20 border border-transparent"></span>Built for production traffic</span>
<h1 class="mt-6 text-balance break-words text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl">Infrastructure that stops being interesting.</h1>
<p class="mx-auto mt-5 max-w-2xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">Deploy once and forget the pager. We handle the regions, the failover and the certificate you were about to let expire.</p>
<div class="mt-8 flex flex-col justify-center gap-3 sm:flex-row">
<a href="#" class="inline-flex h-12 items-center justify-center gap-1.5 rounded-xl bg-primary px-6 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/25 transition-transform hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Deploy your first app<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right h-4 w-4 rtl:rotate-180" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a>
<a href="#" class="inline-flex h-12 items-center justify-center rounded-xl border border-border/60 bg-card/60 px-6 text-sm font-semibold backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">View the status page</a>
</div>
<dl class="mt-16 grid grid-cols-2 gap-x-6 gap-y-10 border-t border-border/60 pt-10 lg:grid-cols-4">
<div class="min-w-0">
<dt class="sr-only">Uptime, rolling 90 days</dt>
<dd>
<span class="block break-words text-3xl font-extrabold tracking-tight sm:text-4xl">99.99%</span>
<span aria-hidden="true" class="mt-2 block text-pretty text-xs leading-relaxed text-muted-foreground">Uptime, rolling 90 days</span>
</dd>
</div>
<div class="min-w-0">
<dt class="sr-only">Requests served monthly</dt>
<dd>
<span class="block break-words text-3xl font-extrabold tracking-tight sm:text-4xl">2.4B</span>
<span aria-hidden="true" class="mt-2 block text-pretty text-xs leading-relaxed text-muted-foreground">Requests served monthly</span>
</dd>
</div>
<div class="min-w-0">
<dt class="sr-only">Median global latency</dt>
<dd>
<span class="block break-words text-3xl font-extrabold tracking-tight sm:text-4xl">180ms</span>
<span aria-hidden="true" class="mt-2 block text-pretty text-xs leading-relaxed text-muted-foreground">Median global latency</span>
</dd>
</div>
<div class="min-w-0">
<dt class="sr-only">Edge regions</dt>
<dd>
<span class="block break-words text-3xl font-extrabold tracking-tight sm:text-4xl">38</span>
<span aria-hidden="true" class="mt-2 block text-pretty text-xs leading-relaxed text-muted-foreground">Edge regions</span>
</dd>
</div>
</dl>
</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 HeroesCopying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
Copy on the left, a drawn product panel on the right — the default hero for anything with an interface to show, with no image asset to host and no layout shift while it loads.
A linked announcement pill over a large centered headline, dual CTAs and a wordmark strip — the hero for a product with nothing to screenshot yet.
Centered copy above a screenshot in window chrome, masked at the bottom so a tall image never dictates the height of the fold. Wraps your own img or video.
A pre-launch hero whose only ask is an email address, with pending and success states and a signup count that argues for finishing rather than starting.
A hero whose primary action is a real search form with prefilling suggestion chips — for marketplaces and directories, where sending the visitor below the fold to find the search box is the whole failure.
A drawn terminal whose install line is real, selectable text with a working copy button and a feature-detected clipboard call — the hero for anything adopted by typing rather than signing up.
A drawn phone beside two store links built as real anchors rather than badge images, so they inherit the theme, need no hosted asset and carry an accessible name that is not a filename.
Pitch on the left, a marked-up figure and blockquote on the right, so the claim and the evidence for it share the fold instead of sitting a scroll apart.
A serif display headline over a 60-character standfirst and a real byline, with one text link and no competing CTAs — the hero for publications and essays, where the writing is the product.
Copy over your own image or video, with a graded scrim and deliberately fixed light-on-dark text — because the background is a photograph in both themes, so flipping the copy would break it.
A hero whose visual is the connector list itself, marked up as a real list so a visitor can skim it for their own stack — asset-free initials tiles, no third-party marks to license.
A day strip built as a radio group rather than buttons, so arrow keys move between dates and sold-out days disable properly — the fold for anything sold by the appointment.
Names the price above the fold for single-plan and one-time products, with the former price in a real strikethrough element so it is never announced as the current one.