Case study: customer quote and outcomes
A customer story with an attributed quote, outcome metrics and an optional link.
pnpm dlx shadcn@latest add @haze/case-study-outcomes---
import { ArrowUpRight } from "@lucide/astro";
import { cn } from "../../../lib/haze/utils";
interface Props {
id?: string;
eyebrow?: string;
title?: string;
description?: string;
headingLevel?: 1 | 2 | 3;
customer?: string;
quote?: string;
attribution?: string;
outcomes?: { value: string; label: string }[];
href?: string;
linkLabel?: string;
class?: string;
}
const {
id = "case-study-outcomes",
eyebrow = "Example case study",
title = "A better rhythm for a growing team",
description = "See how one fictional team brought its planning and updates together in a shared workspace.",
headingLevel = 2,
customer = "Tidewell Studio",
quote = "We spend less time collecting updates and more time moving the work forward together.",
attribution = "Mara Wells, Operations lead",
outcomes = [
{ value: "2 hours", label: "saved per week, per person" },
{ value: "1 place", label: "for project context" },
{ value: "12 teams", label: "sharing a weekly rhythm" },
],
href = "",
linkLabel = "Read the story",
class: className,
} = Astro.props;
const Heading = ({ 1: "h1", 2: "h2", 3: "h3" } as const)[headingLevel];
---
<section aria-labelledby={`${id}-title`} class={cn("bg-background px-6 py-20 sm:py-24", className)}>
<div class="mx-auto max-w-6xl overflow-hidden rounded-2xl border border-border bg-card">
<div class="grid gap-10 p-6 sm:p-10 lg:grid-cols-2 lg:gap-16 lg:p-12">
<div>
<p class="text-[0.6875rem]/4 font-medium tracking-wider text-muted-foreground uppercase">{eyebrow}</p>
<Heading id={`${id}-title`} class="mt-3 text-3xl/9 font-semibold tracking-tight text-balance text-foreground sm:text-4xl/11">{title}</Heading>
<p class="mt-4 text-base/7 text-pretty text-muted-foreground">{description}</p>
{href && <a href={href} class="mt-6 inline-flex min-h-9 items-center gap-1 rounded-sm text-sm/5 font-medium text-foreground underline underline-offset-4 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">{linkLabel}<ArrowUpRight aria-hidden="true" class="size-4" /></a>}
</div>
<figure class="flex flex-col justify-center border-t border-border pt-8 lg:border-t-0 lg:border-l lg:pt-0 lg:pl-10">
<p class="text-sm/5 font-semibold text-foreground">{customer}</p>
<blockquote class="mt-5 text-xl/8 font-medium tracking-tight text-foreground">“{quote}”</blockquote>
<figcaption class="mt-5 text-[0.8125rem]/5 text-muted-foreground">{attribution}</figcaption>
</figure>
</div>
<dl class="grid gap-px border-t border-border bg-border sm:grid-cols-3">
{outcomes.map((outcome) => (
<div class="bg-card px-6 py-5 sm:px-8">
<dt class="text-[0.8125rem]/5 text-muted-foreground">{outcome.label}</dt>
<dd class="mt-2 text-xl/7 font-semibold tracking-tight text-foreground tabular-nums">{outcome.value}</dd>
</div>
))}
</dl>
</div>
</section>When to use
- Summarizing one customer story with measurable outcomes
- A quote and a few metrics can support the introduction
When not to use
- Several customers should have equal prominence; use testimonials-grid
Installation
Add the Haze registry to components.json once, then install Case study: customer quote and outcomes with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.
pnpm dlx shadcn@latest add @haze/case-study-outcomesnpx shadcn@latest add @haze/case-study-outcomesyarn dlx shadcn@latest add @haze/case-study-outcomesbunx --bun shadcn@latest add @haze/case-study-outcomesFirst time? Registry and theme setup
1. Add to components.json:
{
"registries": {
"@haze": "http://localhost:4329/r/{name}.json"
}
}2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | "case-study-outcomes" | Unique section ID prefix. |
| eyebrow | string | "Example case study" | Label above the case-study heading. |
| title | string | demo heading | Story headline. |
| description | string | demo copy | Story introduction; the default identifies the fictional example. |
| headingLevel | 1 | 2 | 3 | 2 | Heading level for the headline. |
| customer | string | "Tidewell Studio" | Customer name; the default is fictional. |
| quote | string | demo quote | Attributed customer quote. |
| attribution | string | demo attribution | Name and role of the speaker. |
| outcomes | { value: string; label: string }[] | 3 example outcomes | Outcome values and explanations; replace all example metrics. |
| href / linkLabel | string | "" / "Read the story" | Optional URL and text for the full story. |
| class | string | – | Additional section classes. |
Keyboard interactions
- Tab
- Focus the story link when present.
Accessibility
- The quote and attribution are grouped with figure and figcaption.
- Outcome labels and values form a description list; the link is omitted when no destination is supplied.
Notes for AI
Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.
Install and use
Install the Haze UI block "Case study: customer quote and outcomes" with `npx shadcn@latest add @haze/case-study-outcomes`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import CaseStudyOutcomes from "@/components/haze/blocks/case-study-outcomes.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/case-study-outcomes.md
Customize with real content
Adapt the Haze case-study-outcomes block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, customer, quote, attribution, outcomes, href / linkLabel, class. Keep the layout, the heading level rules and these accessibility details: The quote and attribution are grouped with figure and figcaption. Outcome labels and values form a description list; the link is omitted when no destination is supplied. Do not add raw color classes; use the Haze tokens.
Choose the right block
Before using case-study-outcomes, check it fits: use it when summarizing one customer story with measurable outcomes; a quote and a few metrics can support the introduction. Avoid it when several customers should have equal prominence; use testimonials-grid. Alternatives: @haze/testimonials-grid.
Dependencies
- npm: @lucide/astro
- @haze/utils
- @haze/theme (one-time setup)
Source · Original Haze UI work.