---
title: "Testimonial"
description: "Shows one customer quote with the person who said it: face, name, and role. Use a card, an outline, plain text, or a pill, and add stars or a company."
url: https://gelatinui.com/components/testimonial
markdown_url: https://gelatinui.com/components/testimonial.md
access: free
install: "npx shadcn@latest add @gelatin-ui/testimonial"
registry_item: https://gelatinui.com/r/testimonial.json
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Testimonial

> Shows one customer quote with the person who said it: face, name, and role. Use a card, an outline, plain text, or a pill, and add stars or a company.

Page: https://gelatinui.com/components/testimonial

## When to use it

Best for: One quote that must read as real proof: a face, a name, a role, and the words.

- Use `variant="card"` with a `TestimonialPanel` for a wall or a grid; `plain` with `size="xl"` for one featured quote.
- Write the quote marks of your language in the text.

## When not to use it

- For a post that must look like X, with its toggles, use [Tweet](https://gelatinui.com/components/tweet.md).

## Notes for agents

- Every visible piece is a part: leave a part out and the rest closes the gap.
- `TestimonialAvatar` takes the `name` as the seed of an Open Peeps face; pass `src` for a photo.
- For a link card, pass `render={<a href=… />}` and keep other links out of it.

## Anatomy

```text
Testimonial
├─ TestimonialPanel (0..n)
├─ TestimonialHeader (0..n)
├─ TestimonialQuote (0..n)
├─ TestimonialHighlight (0..n)
├─ TestimonialTitle (0..n)
├─ TestimonialAuthor (0..n)
├─ TestimonialAvatar (0..n)
├─ TestimonialPerson (0..n)
├─ TestimonialName (0..n)
├─ TestimonialRole (0..n)
├─ TestimonialCompany (0..n)
├─ TestimonialCompanyMark (0..n)
├─ TestimonialRating (0..n)
├─ TestimonialSource (0..n)
├─ TestimonialDate (0..n)
├─ TestimonialVerified (0..n)
├─ TestimonialStat (0..n)
├─ TestimonialStatValue (0..n)
├─ TestimonialStatLabel (0..n)
├─ TestimonialMedia (0..n)
└─ TestimonialMediaFace (0..n)
```

## API reference

### Testimonial

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `TestimonialVariant` | "card" | `card` (default): a Frame tray; put the words in a `TestimonialPanel` and the `TestimonialAuthor` on the tray under it. `outline`: one bordered card. `plain`: no surface. `pill`: one short line, for a hero. |
| `orientation` | `"horizontal" \| "vertical"` | "vertical" | `horizontal` puts the panels side by side (a featured quote with a face panel). |
| `size` | `TestimonialSize` | "default" | The quote text: `sm` 15px, `default` 16px, `lg` 22px light, `xl` 32px light. |
| `locale` | `string` |  | The BCP 47 locale of dates and the star score. Default: the `DisplayLocaleProvider`, else "en-US". |
| `labels` | `Partial<TestimonialLabels>` |  |  |

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### TestimonialPanel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "lg" \| "sm"` | "default" | The room inside: `sm` 16px (a wall card), `default` 20px, `lg` 32px and 48px from 640px (a featured story). |

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### TestimonialHeader

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialQuote

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `TestimonialSize` |  | The size of this quote. Default: the `size` of the Testimonial. |
| `variant` | `"ink" \| "muted"` | "ink" | `ink` (default): the whole quote in the text color. `muted`: the quote in the muted color, with its `TestimonialHighlight` in ink: a two-tone quote. |

### TestimonialHighlight

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"bold" \| "ink"` | "ink" | `ink` (default): the phrase in the text color, for a two-tone quote. `bold`: semibold. |

### TestimonialTitle

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialAuthor

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialAvatar

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `inset` | `boolean` |  |  |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "lg" \| "sm" \| "xl" \| "xs"` |  |  |
| `name` | `string` |  | The person's name: the seed of the Open Peeps face. |
| `src` | `string` |  | A photo. While it loads, or when it fails or is missing, the face shows. |

### TestimonialPerson

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `orientation` | `"horizontal" \| "vertical"` | "vertical" | `vertical` (default): the name over the role. `horizontal`: the name and the role on one line, 8px apart. |

### TestimonialName

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"credit" \| "default"` | "default" | `default`: 14/20 medium in ink. `credit`: 13/18 regular muted, for "Maya Lindqvist, Head of Design" under a large quote. |

### TestimonialRole

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"default" \| "handle"` | "default" | `default`: the role and company, 13/18. `handle`: a handle ("@jonahbuilds"), 12px mono. |

### TestimonialCompany

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialCompanyMark

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `color` | `string` |  | The tile color (a data color): any CSS color. Default: the text color. |
| `size` | `"default" \| "lg" \| "sm"` | "default" | `sm` 18px (in a tab), `default` 20px, `lg` 28px (a company chip). |
| `style` | `CSSProperties` |  |  |

### TestimonialRating

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `number` |  | The score to show, any fraction (4.3). It is clamped to 0 to `max`. |
| `max` | `number` | 5 | The number of stars. |
| `icon` | `Icon` |  | The icon of a star, as on `Rating`. |
| `glow` | `boolean` |  | A soft halo on the filled stars (`glow`, `@gelatin-ui/glow`). Default: `false`. |
| `size` | `"default" \| "sm" \| "xs"` | "sm" | `xs`: 12px stars for a proof line or an award; `sm` (default): 16px; `default`: 20px. |

### TestimonialSource

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialDate

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `date` | `string \| number \| Date` |  | The day it was said: a `Date`, epoch ms, or an ISO string. |
| `format` | `DateTimeFormatOptions` |  | The `Intl.DateTimeFormat` options. Default: `{ dateStyle: "medium" }` ("Nov 12, 2026"). |

### TestimonialVerified

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "lg"` |  |  |

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### TestimonialStat

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialStatValue

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "sm"` | "default" | `default`: 56px, stepping down by length. `sm`: 32/40, for a row of three results in a panel. |

### TestimonialStatLabel

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialMedia

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `tint` | `string` |  | The panel color in light mode (a data color: the company's own tint). Default: `muted`. |
| `tintDark` | `string` |  | The panel color in dark mode. Default: `tint`. |
| `style` | `CSSProperties` |  |  |

### TestimonialMediaFace

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` |  | The person's name: the seed of the Open Peeps face. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Testimonial | `testimonial` |  | `--radius-lg` | `motion-timing` |
| TestimonialPanel | `testimonial-panel` |  |  |  |
| TestimonialHeader | `testimonial-header` |  |  |  |
| TestimonialQuote | `testimonial-quote` |  | `--radius-lg` | `motion-timing` |
| TestimonialHighlight | `testimonial-highlight` |  |  |  |
| TestimonialTitle | `testimonial-title` |  |  |  |
| TestimonialAuthor | `testimonial-author` |  |  |  |
| TestimonialAvatar | `testimonial-avatar` |  |  |  |
| TestimonialPerson | `testimonial-person` |  |  |  |
| TestimonialName | `testimonial-name` |  |  |  |
| TestimonialRole | `testimonial-role` |  |  |  |
| TestimonialCompany | `testimonial-company` |  |  |  |
| TestimonialCompanyMark | `testimonial-company-mark` | `data-colored`, `data-size` | `--testimonial-mark` |  |
| TestimonialRating | `testimonial-rating` |  |  |  |
| TestimonialSource | `testimonial-source` |  |  |  |
| TestimonialDate | `testimonial-date` |  |  |  |
| TestimonialVerified | `testimonial-verified` |  |  |  |
| TestimonialStat | `testimonial-stat` |  |  |  |
| TestimonialStatValue | `testimonial-stat-value` |  |  |  |
| TestimonialStatLabel | `testimonial-stat-label` |  |  |  |
| TestimonialMedia | `testimonial-media` | `data-tinted` | `--media-tint`, `--media-tint-dark` |  |
| TestimonialMediaFace | `testimonial-media-face` |  |  |  |

## Usage

Put the company and the quote in a panel, and the person under it.

```tsx title="customer-quote.tsx"
import {
  Testimonial,
  TestimonialAuthor,
  TestimonialAvatar,
  TestimonialCompany,
  TestimonialCompanyMark,
  TestimonialName,
  TestimonialPanel,
  TestimonialPerson,
  TestimonialQuote,
  TestimonialRole,
} from "@/components/social/testimonial";

export function CustomerQuote() {
  return (
    <Testimonial>
      <TestimonialPanel>
        <TestimonialCompany>
          <TestimonialCompanyMark color="oklch(0.55 0.2 260)">N</TestimonialCompanyMark>
          <span>Northwind</span>
        </TestimonialCompany>
        <TestimonialQuote>“We rebuilt our whole settings area in a week.”</TestimonialQuote>
      </TestimonialPanel>
      <TestimonialAuthor>
        <TestimonialAvatar name="Maya Lindqvist" />
        <TestimonialPerson>
          <TestimonialName>Maya Lindqvist</TestimonialName>
          <TestimonialRole>Head of Design, Northwind</TestimonialRole>
        </TestimonialPerson>
      </TestimonialAuthor>
    </Testimonial>
  );
}
```

## Compose

Build it with:

- [Testimonial Logo Grid](https://gelatinui.com/components/testimonial-logo-grid.md): Shows the customer logos.
- [Testimonial Score](https://gelatinui.com/components/testimonial-score.md): Shows a rating summary.

Rules:

- Real content (`real-content`): Fill the UI with content of the real product (real names, amounts, dates, and states), never lorem text or "Item 1".
- Depth from layers (`layered-neutrals`): Show depth with one step of the neutral tokens (page, card, muted) or one soft shadow, not with many borders or strong shadows.
- Color has a job (`color-has-a-job`): Use color only for a status, the brand action, or data; keep the rest neutral, and show a level with a small mark (a dot, a tinted badge) before a big fill.
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.

Patterns: `gelatin://patterns/social-proof`

## Add it

```bash
npx shadcn@latest add @gelatin-ui/testimonial
```

It adds 36 registry items: 32 files, 6520 lines, and the npm packages `@base-ui/react`, `@dicebear/core`, `@dicebear/styles`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Avatar](https://gelatinui.com/components/avatar.md)
- [Badge](https://gelatinui.com/components/badge.md)
- [Frame](https://gelatinui.com/components/frame.md)
- [Generated Avatar](https://gelatinui.com/components/generated-avatar.md)
- [Rating](https://gelatinui.com/components/rating.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Avatar](https://gelatinui.com/components/avatar.md)
- [Rating](https://gelatinui.com/components/rating.md)
- [Frame](https://gelatinui.com/components/frame.md)
- [Badge](https://gelatinui.com/components/badge.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves to a link card, when the testimonial is a link. |
| Enter | Opens the story of a link card. |

## Accessibility

The testimonial is a `figure`: the quote is a `blockquote` and the person a `figcaption` with a `cite`.

The stars are hidden; the rating is named "Rated 4.5 out of 5".

The face is decorative: the name is in the text.

## Motion

| Part | Motion |
| --- | --- |
| Link card hover | hover · the tray tints, an outline card darkens its border |
