# Case study: customer quote and outcomes

> A customer story with an attributed quote, outcome metrics and an optional link.

- Kind: block · Category: Case study · Interactivity: native
- Install: `npx shadcn@latest add @haze/case-study-outcomes`
- File: `src/components/haze/blocks/case-study-outcomes.astro`
- npm dependencies: @lucide/astro
- Registry dependencies: @haze/utils
- Docs page: https://hazeui.com/blocks/case-study-outcomes

## Use when
- Summarizing one customer story with measurable outcomes
- A quote and a few metrics can support the introduction

## Avoid when
- Several customers should have equal prominence; use testimonials-grid

## Alternatives
- [testimonials-grid](https://hazeui.com/blocks/testimonials-grid.md)

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| id | `string` | "case-study-outcomes" | no | Unique section ID prefix. |
| eyebrow | `string` | "Example case study" | no | Label above the case-study heading. |
| title | `string` | demo heading | no | Story headline. |
| description | `string` | demo copy | no | Story introduction; the default identifies the fictional example. |
| headingLevel | `1 \| 2 \| 3` | 2 | no | Heading level for the headline. |
| customer | `string` | "Tidewell Studio" | no | Customer name; the default is fictional. |
| quote | `string` | demo quote | no | Attributed customer quote. |
| attribution | `string` | demo attribution | no | Name and role of the speaker. |
| outcomes | `{ value: string; label: string }[]` | 3 example outcomes | no | Outcome values and explanations; replace all example metrics. |
| href / linkLabel | `string` | "" / "Read the story" | no | Optional URL and text for the full story. |
| class | `string` |  | no | Additional section classes. |

## 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.
- Key Tab: Focus the story link when present.

## Agent prompts

### 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": "https://hazeui.com/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: https://hazeui.com/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.

## Example requests that should lead here
- Summarize a customer story with a quote and three measured outcomes

## Source

```astro
---
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>
```
