Testimonial blocks
Quotes with attribution, from one signature quote to customer stories with outcomes.
The examples never use stock portraits. Without a photo, a person gets a quiet tile with their initials, and the picture comes from the customer instead: their product, their building, their bench.
Signature quote
One quote that deserves the room. The opening mark hangs outside the text, so the lines share one edge.
import * as React from "react"
import { cn } from "@/lib/utils"
import { LOGOS, PEOPLE } from "@/components/marketing/foundation/example-brands"
import { LogoItem } from "@/components/marketing/foundation/logo-group"
import { MediaFrame } from "@/components/marketing/foundation/media-frame"
import { PersonAttribution } from "@/components/marketing/foundation/person"
import {
MarketingContainer,
MarketingSection,
} from "@/components/marketing/foundation/section"
import type {
MarketingImage,
MarketingLogo,
MarketingPerson,
} from "@/components/marketing/foundation/types"
interface TestimonialsSignatureQuoteProps {
quote?: React.ReactNode
person?: MarketingPerson
logo?: MarketingLogo
/** The customer's place or product. Leave it out for a type-only section. */
image?: MarketingImage | null
/** An anchor for links within the page. */
id?: string
className?: string
}
const DEFAULT_IMAGE: MarketingImage = {
src: "https://www.honestui.com/marketing/vessels.webp",
alt: "Stoneware vases and bowls in white, teal and orange on pale plinths.",
position: "0% 50%",
}
/** One quote, large enough to read slowly, and the person who said it. */
export function TestimonialsSignatureQuote({
quote = "We used to find out a policy had changed when a customer told us. Now the people who answer the phone approve it before it goes out.",
person = PEOPLE.hanne,
logo = LOGOS.kiln,
image = DEFAULT_IMAGE,
id,
className,
}: TestimonialsSignatureQuoteProps) {
return (
<MarketingSection aria-label="Customer quote" id={id} className={className}>
<MarketingContainer>
<figure
className={cn(
"m-0 grid gap-x-[clamp(2.5rem,1rem+5vw,6rem)] gap-y-9",
image && "lg:grid-cols-12"
)}
>
{image && (
<MediaFrame image={image} ratio="20 / 21" ratioMobile="4 / 3" className="lg:col-span-5" />
)}
<div
className={cn(
"flex flex-col gap-8 lg:gap-12",
image ? "lg:col-span-7 lg:justify-between lg:py-2" : "max-w-[60rem]"
)}
>
{logo && <LogoItem logo={logo} className="h-8" />}
<blockquote className="m-0 lg:my-auto">
<p className="mkt-quote -indent-[0.42em] text-(--mkt-ink) max-sm:indent-0">
“{quote}”
</p>
</blockquote>
<figcaption>
<PersonAttribution person={person} />
</figcaption>
</div>
</figure>
</MarketingContainer>
</MarketingSection>
)
}
export type { TestimonialsSignatureQuoteProps }
Editorial quote grid
Three quotes that keep their natural lengths. Logos share the top line and names share the bottom line.
import * as React from "react"
import { LOGOS, PEOPLE } from "@/components/marketing/foundation/example-brands"
import { LogoItem } from "@/components/marketing/foundation/logo-group"
import { PersonAttribution } from "@/components/marketing/foundation/person"
import {
MarketingContainer,
MarketingSection,
} from "@/components/marketing/foundation/section"
import { SectionHeading } from "@/components/marketing/foundation/section-heading"
import type {
MarketingLogo,
MarketingPerson,
} from "@/components/marketing/foundation/types"
interface GridTestimonial {
quote: string
person: MarketingPerson
logo?: MarketingLogo
}
interface TestimonialsEditorialGridProps {
title?: React.ReactNode
description?: React.ReactNode
/** Three. Let the lengths differ; attribution stays on one line. */
testimonials?: GridTestimonial[]
/** An anchor for links within the page. */
id?: string
className?: string
}
const DEFAULT_TESTIMONIALS: GridTestimonial[] = [
{
quote:
"The depots used to print whatever was attached to the last email. Now there is one notice, and the footer says who approved it.",
person: PEOPLE.dario,
logo: LOGOS.osprey,
},
{
quote: "I sign things on the train. I read the change, I say yes, and that is the whole job.",
person: PEOPLE.ted,
logo: LOGOS.alder,
},
{
quote:
"An auditor asked for the history of one protocol. I exported it while we were still on the call, and it answered questions I had not thought of.",
person: PEOPLE.sol,
logo: LOGOS.fathom,
},
]
/** Three quotations of natural length on one shared grid. */
export function TestimonialsEditorialGrid({
title = "From people who sign things.",
description,
testimonials = DEFAULT_TESTIMONIALS,
id,
className,
}: TestimonialsEditorialGridProps) {
const titleId = React.useId()
return (
<MarketingSection aria-labelledby={titleId} id={id} className={className}>
<MarketingContainer>
<SectionHeading titleId={titleId} title={title} description={description} />
<ul className="m-0 mt-(--mkt-head-gap) grid list-none gap-x-(--mkt-column-gap) gap-y-2 p-0 lg:grid-cols-3">
{testimonials.map((testimonial) => (
<li
key={testimonial.person.name}
className="border-t-[0.5px] border-(--mkt-line-strong) py-8 lg:pb-0"
>
<figure className="m-0 flex h-full flex-col">
{testimonial.logo && <LogoItem logo={testimonial.logo} className="h-7 self-start" />}
<blockquote className="m-0 mt-7 mb-9 lg:mt-12 lg:mb-14">
<p className="m-0 max-w-[30rem] text-[1.25rem] leading-[1.45] tracking-[-0.019em] text-(--mkt-ink) [text-wrap:pretty]">
{testimonial.quote}
</p>
</blockquote>
<figcaption className="mt-auto">
<PersonAttribution person={testimonial.person} size="sm" />
</figcaption>
</figure>
</li>
))}
</ul>
</MarketingContainer>
</MarketingSection>
)
}
export type { GridTestimonial, TestimonialsEditorialGridProps }
Customer story with results
Logos work as tabs. Each story has a quote, a person, a picture, and one measured outcome with its period. Every story keeps its place, so nothing below the section moves.
"use client"
import * as React from "react"
import { TextLink } from "@/components/marketing/foundation/action-group"
import { LOGOS, PEOPLE } from "@/components/marketing/foundation/example-brands"
import { LogoItem } from "@/components/marketing/foundation/logo-group"
import { MediaFrame } from "@/components/marketing/foundation/media-frame"
import { PersonAttribution } from "@/components/marketing/foundation/person"
import {
MarketingContainer,
MarketingSection,
} from "@/components/marketing/foundation/section"
import { SectionHeading } from "@/components/marketing/foundation/section-heading"
import type {
MarketingImage,
MarketingLink,
MarketingLogo,
MarketingPerson,
} from "@/components/marketing/foundation/types"
import { Tabs, TabsList, TabsPanel, TabsTab } from "@/components/ui/tabs"
interface CustomerStory {
id: string
logo: MarketingLogo
quote: string
person: MarketingPerson
image: MarketingImage
/** One measured result, with the period it covers. */
outcome?: { value: string; label: string }
link?: MarketingLink
}
interface TestimonialsCustomerStoriesProps {
title?: React.ReactNode
description?: React.ReactNode
/** Three to five. */
stories?: CustomerStory[]
/** An anchor for links within the page. */
id?: string
className?: string
}
const DEFAULT_STORIES: CustomerStory[] = [
{
id: "kiln",
logo: LOGOS.kiln,
quote:
"We used to find out a policy had changed when a customer told us. Now the people who answer the phone approve it first.",
person: PEOPLE.hanne,
image: {
src: "https://www.honestui.com/marketing/vessels.webp",
alt: "Stoneware vases and bowls in white, teal and orange on pale plinths.",
},
outcome: { value: "9 days to 3", label: "Median time to sign-off, first six months" },
link: { label: "Read the Kiln story", href: "#kiln" },
},
{
id: "fathom",
logo: LOGOS.fathom,
quote:
"An auditor asked for the history of one protocol. I exported it while we were still on the call.",
person: PEOPLE.sol,
image: {
src: "https://www.honestui.com/marketing/glass.webp",
alt: "Panes of colored glass, a clear sphere and a beaker on a pale bench.",
},
outcome: { value: "41 protocols", label: "Moved from shared folders in one quarter" },
link: { label: "Read the Fathom story", href: "#fathom" },
},
{
id: "osprey",
logo: LOGOS.osprey,
quote:
"The depots printed whatever was attached to the last email. Now there is one notice, and it says who approved it.",
person: PEOPLE.dario,
image: {
src: "https://www.honestui.com/marketing/courtyard.webp",
alt: "A stone station building with a row of arches under a blue sky.",
position: "85% 60%",
},
outcome: { value: "5 depots", label: "Working from the same notice since March" },
link: { label: "Read the Osprey Rail story", href: "#osprey" },
},
]
/**
* Logos choose the story. Every story keeps its place in the grid, so the
* section has the height of the longest one and nothing below it moves.
*/
export function TestimonialsCustomerStories({
title = "Ask the people who switched.",
description,
stories = DEFAULT_STORIES,
id,
className,
}: TestimonialsCustomerStoriesProps) {
const titleId = React.useId()
return (
<MarketingSection aria-labelledby={titleId} id={id} className={className}>
<MarketingContainer>
<SectionHeading titleId={titleId} title={title} description={description} />
<Tabs defaultValue={stories[0]?.id} className="mt-(--mkt-head-gap)">
<TabsList
variant="plain"
aria-label="Customer stories"
className="justify-start gap-0! overflow-x-auto border-b-[0.5px] border-(--mkt-line-strong) [scrollbar-width:none]"
indicatorClassName="bg-(--mkt-ink)!"
>
{stories.map((story) => (
<TabsTab
key={story.id}
value={story.id}
className="h-16 min-w-max flex-1! justify-start px-0 pe-6 opacity-70 transition-opacity duration-200 hover:opacity-100 data-active:opacity-100 sm:pe-10 sm:h-18"
>
<LogoItem logo={story.logo} className="max-sm:[zoom:0.88]" />
</TabsTab>
))}
</TabsList>
<div className="mt-7 grid lg:mt-10">
{stories.map((story) => (
<TabsPanel
key={story.id}
value={story.id}
keepMounted
className="[grid-area:1/1] [&[hidden]]:invisible [&[hidden]]:grid [&:not([hidden])]:mkt-swap grid gap-x-[clamp(2rem,1rem+4vw,5rem)] gap-y-8 lg:grid-cols-12"
>
<MediaFrame
image={story.image}
ratio="4 / 3"
ratioMobile="3 / 2"
className="lg:col-span-6"
/>
<figure className="m-0 flex flex-col gap-8 lg:col-span-6 lg:justify-between lg:py-1">
<blockquote className="m-0">
<p className="mkt-quote [font-size:clamp(1.375rem,1.1rem+1.1vw,2rem)] text-(--mkt-ink)">
“{story.quote}”
</p>
</blockquote>
<figcaption>
<PersonAttribution person={story.person} />
{(story.outcome || story.link) && (
<div className="mt-8 flex flex-wrap items-end justify-between gap-x-8 gap-y-4 border-t-[0.5px] border-(--mkt-line-strong) pt-5">
{story.outcome && (
<p className="m-0">
<span className="block text-[1.25rem] leading-7 tracking-[-0.02em] tabular-nums [font-weight:500]">
{story.outcome.value}
</span>
<span className="mkt-meta block">{story.outcome.label}</span>
</p>
)}
{story.link && <TextLink link={story.link} />}
</div>
)}
</figcaption>
</figure>
</TabsPanel>
))}
</div>
</Tabs>
</MarketingContainer>
</MarketingSection>
)
}
export type { CustomerStory, TestimonialsCustomerStoriesProps }
Usage
Every prop has a default, so a block renders as soon as it is installed. Pass your own content to replace it.
import { TestimonialsSignatureQuote } from "@/components/marketing/testimonials-signature-quote"
<TestimonialsSignatureQuote
quote="Now the people who answer the phone approve it first."
person={{ name: "Hanne Lindqvist", role: "Head of operations", company: "Kiln" }}
image={null}
/>