---
title: "Testimonial Bubble"
description: "Shows a short quote as a chat message, with the person's face at the tail. In a group of bubbles, each one drifts a few pixels on its own."
url: https://gelatinui.com/components/testimonial-bubble
markdown_url: https://gelatinui.com/components/testimonial-bubble.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/testimonial-bubble"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Testimonial Bubble

> Shows a short quote as a chat message, with the person's face at the tail. In a group of bubbles, each one drifts a few pixels on its own.

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

## When to use it

Best for: Casual praise of one or two lines.

- Use `side="end"` for every other bubble in a column, and `variant="ink"` for the one that leads.
- Pass `drift` with a stable seed (the name) for a slow drift.

## When not to use it

- For a long quote with a company and a role, use [Testimonial](https://gelatinui.com/components/testimonial.md).

## Notes for agents

- Put a `TestimonialAvatar` and a `TestimonialBubbleContent` with a `TestimonialQuote` and a `TestimonialBubbleCaption` in it.

## Anatomy

```text
TestimonialBubble
├─ TestimonialBubbleContent (0..n)
└─ TestimonialBubbleCaption (0..n)
```

## API reference

### TestimonialBubble

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `side` | `"end" \| "start"` | "start" | `start` (default): the face at the inline start, the tail toward it. `end`: the mirror. |
| `variant` | `"card" \| "ink"` | "card" | `card` (default): a bordered card bubble. `ink`: a solid ink bubble, for one bubble that leads. |
| `drift` | `string` |  | A slow drift of 4px up and back, on its own 6 to 9s loop chosen from `drift`, so a cloud of bubbles never moves in step. It stops off screen and in a hidden tab. Leave it out for a still bubble. |
| `locale` | `string` |  | The BCP 47 locale of a date in it. Default: the `DisplayLocaleProvider`, else "en-US". |
| `labels` | `Partial<TestimonialLabels>` |  |  |

### TestimonialBubbleContent

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

### TestimonialBubbleCaption

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TestimonialBubble | `testimonial-bubble` |  |  |  |
| TestimonialBubbleContent | `testimonial-bubble-content` | `data-side`, `data-variant` | `--radius` |  |
| TestimonialBubbleCaption | `testimonial-bubble-caption` | `data-variant` |  |  |

## Usage

Put the face, then the bubble with the words and who said it.

```tsx title="praise-bubble.tsx"
import { TestimonialAvatar, TestimonialQuote } from "@/components/social/testimonial";
import {
  TestimonialBubble,
  TestimonialBubbleCaption,
  TestimonialBubbleContent,
} from "@/components/pro/social/testimonial-bubble";

export function PraiseBubble() {
  return (
    <TestimonialBubble drift="Lena">
      <TestimonialAvatar name="Lena Hoffmann" />
      <TestimonialBubbleContent>
        <TestimonialQuote>Tried it on a Sunday, shipped it on Monday.</TestimonialQuote>
        <TestimonialBubbleCaption>Lena · Design Lead</TestimonialBubbleCaption>
      </TestimonialBubbleContent>
    </TestimonialBubble>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

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

It adds 42 registry items: 38 files, 7097 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

- [Testimonial](https://gelatinui.com/components/testimonial.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

- [Testimonial](https://gelatinui.com/components/testimonial.md)
- [Avatar](https://gelatinui.com/components/avatar.md)

## Accessibility

Each bubble is a `figure` with a `blockquote` and a `figcaption`.

The drift moves only the picture; it stops off screen and in a hidden tab.

## Motion

| Part | Motion |
| --- | --- |
| Drift | sine · 4px up and back on a 6 to 9s loop, seeded per bubble |
