Skip to content
Haze UI

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
Open preview in a new tab
Liveno JavaScript

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-outcomes
First 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

PropTypeDefaultDescription
idstring"case-study-outcomes"Unique section ID prefix.
eyebrowstring"Example case study"Label above the case-study heading.
titlestringdemo headingStory headline.
descriptionstringdemo copyStory introduction; the default identifies the fictional example.
headingLevel1 | 2 | 32Heading level for the headline.
customerstring"Tidewell Studio"Customer name; the default is fictional.
quotestringdemo quoteAttributed customer quote.
attributionstringdemo attributionName and role of the speaker.
outcomes{ value: string; label: string }[]3 example outcomesOutcome values and explanations; replace all example metrics.
href / linkLabelstring"" / "Read the story"Optional URL and text for the full story.
classstring–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.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog