# Testimonials (Lumen Halo): prompt.md (v1.0.0)

- id: `lumen-testimonials` · version 1.0.0 · block · pro (Pro)
- category: Marketing
- build: Base UI (one set of files; its dependencies follow the build)
- install (this build): `npx shadcn@latest add @beautiful-ui-pro/lumen-testimonials`
- npm dependencies: none
- registry dependencies: utils, @beautiful-ui/lumen-avatar, @beautiful-ui/lumen-button, https://beautiful-ui.dev/r/lumen-foundation.json
- docs: https://beautiful-ui.dev/components/lumen-testimonials
- The install command carries everything this item needs (files, CSS, tokens, npm and registry dependencies). Prefer it to copying source by hand.

What customers say: one featured quote, then a masonry wall of the rest. Every quote names its person, role and company and can lead with the result it proves; long walls show a few and open the rest in place.

## Build it
- Stack: React 19 (`ref` is a plain prop), TypeScript, Tailwind CSS v4 utilities, a shadcn-initialised project with the `@/*` alias.
- Packages: none beyond React.
- Files: `components/ui/lumen/blocks/testimonials.tsx`.
- Registry dependencies, installed with it automatically: shadcn `utils` (cn), `lumen-avatar`, `lumen-button`, `lumen-foundation`.
- Builds: one set of files for both, but its dependencies come in Base UI and Radix builds. Install the one that matches the project (see Install): a free item's bare URL installs the Base UI build of it and its dependencies.
- Exports to keep: `Testimonials`, and every exported type.
- CSS: the install merges this item's rules (the registry `css` field) into your global stylesheet, in `@layer components`, and adds the lumen foundation (tokens, keyframes, motion levels) once. Nothing to import by hand.
- Re-running `add` (or `--overwrite`) re-applies those rules: put overrides in your own CSS, never in the installed rules.
- Tokens: retheme with the `--lumen-*` custom properties (`--lumen-accent`, `--lumen-accent-foreground`, `--lumen-accent-text`, `--lumen-bad`, `--lumen-bad-text`, `--lumen-chart-accent`, `--lumen-chart-accent-foreground`, `--lumen-chart-accent-text`, `--lumen-focus`, `--lumen-good`, `--lumen-good-text`, `--lumen-hairline`, `--lumen-ink`, `--lumen-muted-ink`, `--lumen-series-1`, `--lumen-series-2`, `--lumen-series-3`, `--lumen-series-4`, `--lumen-series-5`, `--lumen-series-6`, `--lumen-warn`, `--lumen-warn-text`); this item's CSS also reads `--lumen-font-mono`, `--lumen-font-sans`, `--lumen-radius-k`. Never add Tailwind colour classes inside the component.

```tsx
import { Testimonials, type Testimonial } from "@/components/ui/lumen/blocks/testimonials";
```

## Parts

| Part | data-slot | What it is for |
|---|---|---|
| `Testimonials` | `testimonials` | The heading, the featured quote, the wall and Show more. |

Style a part with `[data-slot="<slot>"]` selectors or its `className`; keep the attributes when editing.

## Sound
- Keep every `data-slot` and `data-sound` attribute: the sound layer reads them.
- Installing this item adds no audio. Nothing plays until the app mounts `GlassSoundProvider` once (install: `npx shadcn@latest add https://beautiful-ui.dev/r/glass-sound.json`, import from `@/components/beautiful-ui/glass-sound`); `GlassSoundToggle` is its mute control. Without a provider the audio engine never loads.

## Match the original
- Read `components/ui/lumen/blocks/testimonials.tsx` as the reference implementation before changing or recreating anything, and match it: sizes, colours per theme, motion timings, copy and behaviour.
- If you deviate (a prop you can't honour, a style you changed, a dependency you swapped), say so in your reply, part by part.
- Keep the accessibility contract, the keyboard map and the motion levels listed below.

## Use it when
- testimonials, customer quotes, reviews section, social proof, wall of love, case study quotes
- A landing page's social proof section
- A customers page with many quotes

### Not when
- Logos only: use Logo Carousel
- Ratings and reviews of a product: use Rating with your own list

## Mistakes
- Use real, permitted quotes with the person's real role and company
- Keep metric to one short line; it's the proof, not a headline

## Usage

```tsx
import { Testimonials, type Testimonial } from "@/components/ui/lumen/blocks/testimonials";

const quotes: Testimonial[] = [
  { id: "1", featured: true, metric: "38% fewer tickets", quote: "We stopped guessing which customers were about to leave. The team acts on it every Monday.", name: "Maya Chen", role: "Head of Support", company: "Kitelabs" },
  { id: "2", quote: "Set up in an afternoon. Our board deck now builds itself.", name: "Leo Park", role: "CFO", company: "Northwind" },
  { id: "3", quote: "The first analytics tool our designers actually open.", name: "Ana Ruiz", role: "Design lead", company: "Acme" },
];

export function SocialProof() {
  return <Testimonials title="Teams that ship on it" testimonials={quotes} />;
}
```

## Props

| Prop | Type | Default | What it does |
|---|---|---|---|
| `testimonials` | `Testimonial[]` |  | Testimonial = { id, quote, name, role?, company?, avatarUrl?, metric?, featured? }. The first featured quote is shown large. |
| `title / description` | `ReactNode / ReactNode` |  | The section heading and its line. |
| `initial` | `number` | `6` | Wall quotes shown before Show more. |
| `labels` | `{ more?(n), less? }` |  | The button's words, for i18n. |

Full docs: https://beautiful-ui.dev/components/lumen-testimonials

## Customising
- Colours: set the `--lumen-*` tokens on `:root`, or on a container with the `lumen-scope` class to retheme one area. Add the `lumen-inherit` class to follow your shadcn palette instead (`--chart-N`, `--destructive`).
- Dark mode follows the `.dark` class on an ancestor (the shadcn and next-themes convention).
- Update later by re-running the install with `--overwrite` (review the diff if you edited it). Changelog: https://beautiful-ui.dev/r/changelog.json

## Keyboard

| Keys | Action |
|---|---|
| Tab | Show more / Show fewer |
| Enter / Space | Open or close the rest of the wall |

## Performance

- Static markup; CSS columns lay out the wall, no JavaScript measuring

## Responsive

- The wall flows into as many columns of at least 240px as fit (three at most); the featured quote's type scales with its container

## Motion inventory

| Interaction | What moves |
|---|---|
| Show more | The rest of the wall appears; nothing else moves |

## Accessibility contract (preserve when editing)
- Each quote is a figure with a blockquote and a figcaption naming the person
- The featured quote's curly quotes are drawn by CSS, so screen readers read the words, not punctuation
- Show more is a button with aria-expanded controlling the wall

## Install

```bash
npx shadcn@latest add @beautiful-ui-pro/lumen-testimonials
```

Pro item: needs the `@beautiful-ui-pro` registry in `components.json` and `BEAUTIFUL_UI_TOKEN` in `.env.local` (https://beautiful-ui.dev/account). Setup: https://beautiful-ui.dev/docs/pro. Your components.json `style` picks the build: radix-*, new-york and default get Radix, base-* gets Base UI.

The lumen foundation (the tokens listed above, keyframes and motion levels) installs once with the first component; its CSS is public at https://beautiful-ui.dev/r/lumen-foundation.json.
