# Testimonial grid

An editorial responsive grid for consumer-supplied attributed statements, individual portraits, and native source links.

Access: pro. Category: Marketing. Kind: composite.

## When to use

- Use it when a page needs an editorial responsive grid for consumer-supplied attributed statements, individual portraits, and native source links.
- Choose it as the social-proof region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose feature-card instead when a feature summary with animated orbital artwork is the actual interface need, rather than testimonial grid.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Testimonial grid

```sh
npx shadcn@latest add @tidal-pro/testimonial-grid
```

Stylesheets: `components/ui/tidal.css`, `components/ui/testimonial-grid.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/testimonial-grid.css";
import{TidalTestimonialGrid}from"./components/ui/testimonial-grid";
export default()=><div className="tidal-scope"><TidalTestimonialGrid items={[{id:"example",quote:"value",name:"Demo"}]} title={"Demo"}/></div>;
```

## Structured props

- `TidalTestimonialGrid.items: ReadonlyArray<TidalTestimonialGridItem>`: Required items value accepted by this exported component.
- `TidalTestimonialGrid.title: ReactNode`: Required title value accepted by this exported component.
- `TidalTestimonialGrid.action?: TidalTestimonialGridLink | undefined`: Optional action value accepted by this exported component.
- `TidalTestimonialGrid.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalTestimonialGrid.emptyMessage?: ReactNode` (default "No testimonials to display."): Optional empty message value accepted by this exported component.
- `TidalTestimonialGrid.eyebrow?: ReactNode` (default "Testimonials"): Optional eyebrow value accepted by this exported component.
- `TidalTestimonialGrid.headingLevel?: "h2" | "h3" | "h4" | undefined` (default "h2"): Optional heading level value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/testimonial-grid.tsx) | [Manifest](https://tidalui.com/examples/testimonial-grid.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { ShieldCheck } from "lucide-react";

import { TidalTestimonialGrid, type TidalTestimonialGridItem } from "./components/ui/testimonial-grid";

import "./components/ui/testimonial-grid.css";

function tidalExampleAvatarDataUri(seed: unknown) {
  const text = String(seed).replace(/[^a-z0-9]/gi, "").slice(-2) || "UI";
  const palette = ["#333333", "#555555", "#777777", "#999999", "#bbbbbb"];
  const color = palette[Array.from(text).reduce((sum, character) => sum + character.charCodeAt(0), 0) % palette.length];
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96"><rect width="96" height="96" rx="48" fill="${color}"/><circle cx="48" cy="38" r="17" fill="white" fill-opacity=".92"/><path d="M18 92c3-22 15-34 30-34s27 12 30 34" fill="white" fill-opacity=".92"/></svg>`;
  return `data:image/svg+xml,${encodeURIComponent(svg)}`;
}

function tidalExampleImageDataUri(label: string) {
  const safeLabel = label.replace(/[<>&]/g, "").slice(0, 28) || "Sample image";
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 675"><defs><linearGradient id="g" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#171717"/><stop offset="1" stop-color="#555555"/></linearGradient></defs><rect width="1200" height="675" fill="url(#g)"/><circle cx="950" cy="100" r="260" fill="white" fill-opacity=".08"/><text x="80" y="570" fill="white" font-family="system-ui,sans-serif" font-size="64" font-weight="700">${safeLabel}</text></svg>`;
  return `data:image/svg+xml,${encodeURIComponent(svg)}`;
}

const tidalExampleStyles = ".tidal-scope .testimonial-grid-demo {\n  width: 100%;\n  max-width: 1120px;\n  min-width: 0;\n  padding: 29px;\n  border: 1px solid var(--t-border);\n  border-radius: 18px;\n  background:\n    linear-gradient(var(--t-border) 1px, transparent 1px),\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\n    var(--t-subtle);\n  background-size: 24px 24px;\n  color: var(--t-ink);\n  container-type: inline-size;\n}\n\n.tidal-scope .testimonial-grid-demo,\n.tidal-scope .testimonial-grid-demo * {\n  box-sizing: border-box;\n}\n\n.tidal-scope .testimonial-grid-demo-layout {\n  min-width: 0;\n}\n\n.tidal-scope\n  .testimonial-grid-demo\n  > .testimonial-grid-demo-layout\n  > .tidal-testimonial-grid {\n  max-width: none;\n}\n\n.tidal-scope .testimonial-grid-demo-note {\n  display: flex;\n  align-items: flex-start;\n  gap: 11px;\n  min-width: 0;\n  margin-top: 15px;\n  padding: 15px 16px;\n  border: 1px solid var(--t-border);\n  border-radius: 10px;\n  background: var(--t-surface);\n  color: var(--t-ink);\n  scroll-margin-block: 18px;\n}\n\n.tidal-scope .testimonial-grid-demo-note > span {\n  display: grid;\n  width: 34px;\n  height: 34px;\n  flex: none;\n  place-items: center;\n  border-radius: 9px;\n  background: var(--t-ink);\n  color: var(--t-surface);\n}\n\n.tidal-scope .testimonial-grid-demo-note > div {\n  min-width: 0;\n}\n\n.tidal-scope .testimonial-grid-demo-note strong {\n  display: block;\n  font-size: 11px;\n  font-weight: 650;\n  line-height: 1.4;\n}\n\n.tidal-scope .testimonial-grid-demo-note p {\n  margin: 4px 0 0;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.55;\n  overflow-wrap: anywhere;\n}\n\n@container (max-width: 520px) {\n  .tidal-scope .testimonial-grid-demo-layout {\n    padding: 0;\n  }\n\n  .tidal-scope .testimonial-grid-demo-note {\n    padding: 13px;\n  }\n}\n\n@media (max-width: 390px) {\n  .tidal-scope .testimonial-grid-demo {\n    padding: 11px;\n    background-size: 18px 18px;\n  }\n}\n\n@media (prefers-reduced-motion: no-preference) {\n  .tidal-scope .testimonial-grid-demo-note {\n    animation: testimonial-grid-demo-note-enter 430ms var(--t-ease-out) 380ms\n      both;\n  }\n}\n\n@keyframes testimonial-grid-demo-note-enter {\n  from {\n    opacity: 0;\n    transform: translateY(7px);\n  }\n  to {\n    opacity: 1;\n    transform: none;\n  }\n}";

const SAMPLE_TESTIMONIALS = [
  {
    id: "sample-avery",
    quote:
      "The review path stayed clear from the first draft through the final handoff.",
    name: "Avery Cole",
    role: "Product lead",
    organization: "Sample product team",
    avatar: { src: tidalExampleAvatarDataUri("01"), alt: "" },
    context: "Fictional sample",
    featured: true,
    source: {
      label: "Read sample disclosure",
      href: "#testimonial-grid-demo-note",
    },
  },
  {
    id: "sample-mira",
    quote:
      "Each decision had enough context for the next person to keep moving.",
    name: "Mira Lawson",
    role: "Design director",
    organization: "Sample design team",
    avatar: { src: tidalExampleAvatarDataUri("02"), alt: "" },
    context: "Fictional sample",
  },
  {
    id: "sample-jonah",
    quote: "The interface made the important next step easy to recognize.",
    name: "Jonah Reed",
    role: "Operations lead",
    organization: "Sample operations team",
    avatar: { src: tidalExampleAvatarDataUri("03"), alt: "" },
    context: "Fictional sample",
  },
  {
    id: "sample-sana",
    quote: "We could discuss the work without translating the screen first.",
    name: "Sana Bell",
    role: "Research lead",
    organization: "Sample research team",
    avatar: { src: tidalExampleAvatarDataUri("04"), alt: "" },
    context: "Fictional sample",
  },
  {
    id: "sample-elliot",
    quote: "The component held its hierarchy even when our copy became longer.",
    name: "Elliot Park",
    role: "Content designer",
    organization: "Sample content team",
    avatar: { src: tidalExampleAvatarDataUri("05"), alt: "" },
    context: "Fictional sample",
  },
  {
    id: "sample-nia",
    quote:
      "The details felt considered while the interaction remained familiar.",
    name: "Nia Foster",
    role: "Frontend lead",
    organization: "Sample engineering team",
    avatar: { src: tidalExampleAvatarDataUri("06"), alt: "" },
    context: "Fictional sample",
  },
] satisfies readonly TidalTestimonialGridItem[];

export function TestimonialGridDemo() {
  return (
    <section className="testimonial-grid-demo">
      <div className="testimonial-grid-demo-layout">
        <TidalTestimonialGrid
          title="Team feedback"
          description="This preview uses fictional people and statements to demonstrate hierarchy, responsive layout, and native source links."
          items={SAMPLE_TESTIMONIALS}
          action={{
            label: "About this sample",
            href: "#testimonial-grid-demo-note",
          }}
        />

        <aside
          id="testimonial-grid-demo-note"
          className="testimonial-grid-demo-note"
          aria-label="Sample content disclosure"
        >
          <span aria-hidden="true">
            <ShieldCheck size={17} />
          </span>
          <div>
            <strong>Fictional sample content</strong>
            <p>
              These names, teams, roles, and statements are invented for this
              local layout preview. They do not represent customers,
              endorsements, or measured results.
            </p>
          </div>
        </aside>
      </div>
    </section>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <TestimonialGridDemo />
    </div>
  );
}

```

## Gotchas

- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Arrow-key behavior follows the exported composite-control implementation."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

title and items are required. Consumers supply every quote, identity, role, organization, image, citation and disclosure. Optional eyebrow, description, headingLevel, emptyMessage, and native header action. Each item has a stable id, ReactNode quote, name, optional role/organization/context, featured layout, blockquote cite URL, individual avatar with native image attributes/ref, and optional native source anchor with href, attributes/ref. Context is visible supplemental text and remains exposed to assistive technology; only the visual card index is decorative. The root forwards native section attributes/ref. Header and source anchors preserve target, download, rel, modified clicks and consumer handlers. The component makes no endorsement, customer, evidence, metric, network, storage, or verification claim.
