Masonry Testimonial Wall
Quotes packed by height using CSS multi-column, with star ratings, initial avatars and no ragged bottom edge.
Poster tiles linking out to recordings, each with a pull-quote that has to land for the majority who never press play, and a drawn placeholder until you supply a still.
components/testimonial-video.tsxnpx hoverlab add testimonial-video
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.
In their words
Recorded on their own time, edited only for length. Transcripts on each page.
“We replaced three internal tools with this and cut the on-call rota from nine people to four.”
“The part I tell other engineers about is the migration. One afternoon, no schema rewrite.”
“Audit used to be a three-week scramble across four teams. It is a report we generate now.”
Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.
/**
* <TestimonialVideo> — quotes with a face attached to them.
*
* Every other testimonial block in this catalog is text a stranger has to
* take on faith, and the faith is doing a lot of work: a written quote from
* "Ingrid, VP of Customer Experience" is indistinguishable from a written
* quote a marketer invented on a Tuesday. A recording is not. That is the
* whole argument for this shape, and it is why the poster tile carries a
* name and a company rather than a play button alone.
*
* The card is a link, not a `<video>`. Autoplaying six clips would download
* megabytes nobody asked for and start six audio tracks; a real player also
* belongs to whichever host the customer already uses. So each card is an
* anchor to `href` with a pull-quote underneath, and swapping in a lightbox
* means changing one element. Point `posterSrc` at your own still and the
* drawn placeholder gets out of the way — there is no image asset shipped
* here, so the block costs nothing until you give it one.
*
* The pull-quote is not decoration. A visitor who will not spend ninety
* seconds on a video — most of them — still reads the sentence under it, so
* the section has to make its case without a single play. Video that only
* works when watched is a section that mostly does not work.
*
* Duration is stated in the link text rather than shown as a badge alone.
* "Watch Priya, 1:48" tells someone deciding whether to click what it will
* cost them, and it gives the link an accessible name that distinguishes it
* from the five other links that would otherwise all read "Watch".
*/
import * as React from 'react'
import { Play } from 'lucide-react'
export interface VideoTestimonial {
name: string
role: string
company: string
/** The sentence that has to land for someone who never presses play. */
pullQuote: string
duration: string
href?: string
/** Your own still. Without one the card draws a tinted placeholder. */
posterSrc?: string
}
export interface TestimonialVideoProps {
eyebrow?: string
heading?: string
subheading?: string
testimonials?: VideoTestimonial[]
className?: string
}
const DEFAULT_TESTIMONIALS: VideoTestimonial[] = [
{
name: 'Priya Ramachandran',
role: 'Director of Platform',
company: 'Alcove Health',
pullQuote:
'We replaced three internal tools with this and cut the on-call rota from nine people to four.',
duration: '1:48',
href: '#',
},
{
name: 'Dara Okonkwo',
role: 'Staff Engineer',
company: 'Northwind Freight',
pullQuote:
'The part I tell other engineers about is the migration. One afternoon, no schema rewrite.',
duration: '2:12',
href: '#',
},
{
name: 'Ruth Mbeki',
role: 'Head of Compliance',
company: 'Fieldstone Bank',
pullQuote:
'Audit used to be a three-week scramble across four teams. It is a report we generate now.',
duration: '3:05',
href: '#',
},
]
/*
A stable id suffix derived from this instance's own heading.
`useId` is the right answer and is not available here: this is a server
component and hooks are not. The heading is what differs when a section is
used twice on one page, so hashing it gives each copy its own
`aria-labelledby` target without a hook, a prop or a counter — and it
stays stable across server and client renders, which a counter would not.
*/
function instanceId(...parts: (string | undefined)[]): string {
const text = parts.filter(Boolean).join('|')
let hash = 0
for (let i = 0; i < text.length; i++) hash = (Math.imul(hash, 31) + text.charCodeAt(i)) | 0
return (hash >>> 0).toString(36).slice(0, 6)
}
export function TestimonialVideo({
eyebrow = 'In their words',
heading = 'Three customers, unscripted',
subheading = 'Recorded on their own time, edited only for length. Transcripts on each page.',
testimonials = DEFAULT_TESTIMONIALS,
className = '',
}: TestimonialVideoProps) {
const headingId = `video-testimonials-heading-${instanceId(heading, eyebrow)}`
return (
<section
aria-labelledby={headingId}
className={`mx-auto w-full max-w-7xl px-4 py-16 sm:px-6 lg:px-8 ${className}`}
>
<div className="mx-auto max-w-2xl text-center">
<p className="text-sm font-medium uppercase tracking-wider text-primary">{eyebrow}</p>
<h2
id={headingId}
className="mt-3 text-balance text-3xl font-bold tracking-tight text-foreground sm:text-4xl"
>
{heading}
</h2>
<p className="mt-4 text-pretty leading-relaxed text-muted-foreground">{subheading}</p>
</div>
<ul className="mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-3">
{testimonials.map((testimonial) => (
<li key={testimonial.name}>
<figure className="group flex h-full flex-col">
<a
href={testimonial.href ?? '#'}
className="relative block aspect-video overflow-hidden rounded-2xl border border-border/60 bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
>
{testimonial.posterSrc ? (
<img
src={testimonial.posterSrc}
alt=""
className="h-full w-full object-cover transition-transform duration-500 motion-safe:group-hover:scale-105"
/>
) : (
/*
The placeholder, for a catalog page and for the minute
before real stills exist. Initials rather than a grey
rectangle, so a card without a poster still reads as a
person and the layout does not change when one arrives.
*/
<span
aria-hidden
className="flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/15 via-muted to-muted text-4xl font-bold tracking-tight text-primary/40"
>
{testimonial.name
.split(' ')
.slice(0, 2)
.map((word) => word[0] ?? '')
.join('')
.toUpperCase()}
</span>
)}
<span
aria-hidden
className="absolute inset-0 flex items-center justify-center bg-foreground/10 transition-colors group-hover:bg-foreground/20"
>
<span className="flex h-14 w-14 items-center justify-center rounded-full bg-background/90 shadow-sm ring-1 ring-border/60 transition-transform duration-300 motion-safe:group-hover:scale-110">
<Play className="ms-0.5 h-6 w-6 fill-primary text-primary" />
</span>
</span>
<span className="sr-only">
Watch {testimonial.name} of {testimonial.company}, {testimonial.duration}
</span>
<span
aria-hidden
className="absolute bottom-3 end-3 rounded-md bg-background/90 px-2 py-1 text-xs font-medium tabular-nums text-foreground ring-1 ring-border/60"
>
{testimonial.duration}
</span>
</a>
<blockquote className="mt-5 flex-1">
<p className="text-pretty leading-relaxed text-foreground">
“{testimonial.pullQuote}”
</p>
</blockquote>
<figcaption className="mt-4 text-sm leading-snug">
<span className="block font-semibold text-foreground">{testimonial.name}</span>
<span className="block text-muted-foreground">
{testimonial.role}, {testimonial.company}
</span>
</figcaption>
</figure>
</li>
))}
</ul>
</section>
)
}
bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.Drop it at components/testimonial-video.tsx and import it where you need the section:
import { TestimonialVideo } from '@/components/testimonial-video'3 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 | 'In their words' |
heading | string | 'Three customers, unscripted' |
subheading | string | 'Recorded on their own time, edited only for … |
testimonials | VideoTestimonial[] | DEFAULT_TESTIMONIALS |
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.
<!--
Video Testimonial Cards — 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 aria-labelledby="video-testimonials-heading-wv317e" class="mx-auto w-full max-w-7xl px-4 py-16 sm:px-6 lg:px-8 ">
<div class="mx-auto max-w-2xl text-center">
<p class="text-sm font-medium uppercase tracking-wider text-primary">In their words</p>
<h2 id="video-testimonials-heading-wv317e" class="mt-3 text-balance text-3xl font-bold tracking-tight text-foreground sm:text-4xl">Three customers, unscripted</h2>
<p class="mt-4 text-pretty leading-relaxed text-muted-foreground">Recorded on their own time, edited only for length. Transcripts on each page.</p>
</div>
<ul class="mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-3">
<li>
<figure class="group flex h-full flex-col">
<a href="#" class="relative block aspect-video overflow-hidden rounded-2xl border border-border/60 bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
<span aria-hidden="true" class="flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/15 via-muted to-muted text-4xl font-bold tracking-tight text-primary/40">PR</span>
<span aria-hidden="true" class="absolute inset-0 flex items-center justify-center bg-foreground/10 transition-colors group-hover:bg-foreground/20">
<span class="flex h-14 w-14 items-center justify-center rounded-full bg-background/90 shadow-sm ring-1 ring-border/60 transition-transform duration-300 motion-safe:group-hover:scale-110">
<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-play ms-0.5 h-6 w-6 fill-primary text-primary" aria-hidden="true">
<polygon points="6 3 20 12 6 21 6 3"></polygon>
</svg>
</span>
</span>
<span class="sr-only">Watch Priya Ramachandran of Alcove Health, 1:48</span>
<span aria-hidden="true" class="absolute bottom-3 end-3 rounded-md bg-background/90 px-2 py-1 text-xs font-medium tabular-nums text-foreground ring-1 ring-border/60">1:48</span>
</a>
<blockquote class="mt-5 flex-1">
<p class="text-pretty leading-relaxed text-foreground">“We replaced three internal tools with this and cut the on-call rota from nine people to four.”</p>
</blockquote>
<figcaption class="mt-4 text-sm leading-snug">
<span class="block font-semibold text-foreground">Priya Ramachandran</span>
<span class="block text-muted-foreground">Director of Platform, Alcove Health</span>
</figcaption>
</figure>
</li>
<li>
<figure class="group flex h-full flex-col">
<a href="#" class="relative block aspect-video overflow-hidden rounded-2xl border border-border/60 bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
<span aria-hidden="true" class="flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/15 via-muted to-muted text-4xl font-bold tracking-tight text-primary/40">DO</span>
<span aria-hidden="true" class="absolute inset-0 flex items-center justify-center bg-foreground/10 transition-colors group-hover:bg-foreground/20">
<span class="flex h-14 w-14 items-center justify-center rounded-full bg-background/90 shadow-sm ring-1 ring-border/60 transition-transform duration-300 motion-safe:group-hover:scale-110">
<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-play ms-0.5 h-6 w-6 fill-primary text-primary" aria-hidden="true">
<polygon points="6 3 20 12 6 21 6 3"></polygon>
</svg>
</span>
</span>
<span class="sr-only">Watch Dara Okonkwo of Northwind Freight, 2:12</span>
<span aria-hidden="true" class="absolute bottom-3 end-3 rounded-md bg-background/90 px-2 py-1 text-xs font-medium tabular-nums text-foreground ring-1 ring-border/60">2:12</span>
</a>
<blockquote class="mt-5 flex-1">
<p class="text-pretty leading-relaxed text-foreground">“The part I tell other engineers about is the migration. One afternoon, no schema rewrite.”</p>
</blockquote>
<figcaption class="mt-4 text-sm leading-snug">
<span class="block font-semibold text-foreground">Dara Okonkwo</span>
<span class="block text-muted-foreground">Staff Engineer, Northwind Freight</span>
</figcaption>
</figure>
</li>
<li>
<figure class="group flex h-full flex-col">
<a href="#" class="relative block aspect-video overflow-hidden rounded-2xl border border-border/60 bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
<span aria-hidden="true" class="flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/15 via-muted to-muted text-4xl font-bold tracking-tight text-primary/40">RM</span>
<span aria-hidden="true" class="absolute inset-0 flex items-center justify-center bg-foreground/10 transition-colors group-hover:bg-foreground/20">
<span class="flex h-14 w-14 items-center justify-center rounded-full bg-background/90 shadow-sm ring-1 ring-border/60 transition-transform duration-300 motion-safe:group-hover:scale-110">
<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-play ms-0.5 h-6 w-6 fill-primary text-primary" aria-hidden="true">
<polygon points="6 3 20 12 6 21 6 3"></polygon>
</svg>
</span>
</span>
<span class="sr-only">Watch Ruth Mbeki of Fieldstone Bank, 3:05</span>
<span aria-hidden="true" class="absolute bottom-3 end-3 rounded-md bg-background/90 px-2 py-1 text-xs font-medium tabular-nums text-foreground ring-1 ring-border/60">3:05</span>
</a>
<blockquote class="mt-5 flex-1">
<p class="text-pretty leading-relaxed text-foreground">“Audit used to be a three-week scramble across four teams. It is a report we generate now.”</p>
</blockquote>
<figcaption class="mt-4 text-sm leading-snug">
<span class="block font-semibold text-foreground">Ruth Mbeki</span>
<span class="block text-muted-foreground">Head of Compliance, Fieldstone Bank</span>
</figcaption>
</figure>
</li>
</ul>
</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 TestimonialsCopying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
Quotes packed by height using CSS multi-column, with star ratings, initial avatars and no ragged bottom edge.
One customer, quoted at length and backed by a stat row — the section for when a single believable story argues better than a wall of five-star fragments.
A mean score over a stated sample with all five rating bands left visible, including the one-star row — proof that survives the objection every hand-picked quote wall invites.
Twenty quotes in the height of six, scrolled by CSS snap points with arrows that disable at the ends — no auto-advance, and every quote stays in the DOM for search and Cmd-F.
Testimonials reduced to the measured outcome and the conditions it happened under, for readers who skip the quotes.