---
title: "Testimonial Rotator"
description: "Shows one large quote at a time with the speakers as faces under it. The active face shows a name tag and a line that fills until the next quote."
url: https://gelatinui.com/components/testimonial-rotator
markdown_url: https://gelatinui.com/components/testimonial-rotator.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/testimonial-rotator"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Testimonial Rotator

> Shows one large quote at a time with the speakers as faces under it. The active face shows a name tag and a line that fills until the next quote.

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

## When to use it

Best for: Three to eight large quotes, one speaker at a time.

- Give each quote its `TestimonialRotatorFace`, in the same order.

## When not to use it

- For long quotes that people swipe through, use [Testimonial Carousel](https://gelatinui.com/components/testimonial-carousel.md).

## Notes for agents

- Five faces show at once; a "+N" face moves to the next five.
- A face press stops the clock for good.

## Anatomy

```text
TestimonialRotator
├─ TestimonialRotatorContent (0..n)
├─ TestimonialRotatorFaces (0..n)
└─ TestimonialRotatorFace (0..n)
```

## API reference

### TestimonialRotator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `interval` | `number` | 8000 | Time on each quote in ms; 0 holds it. It holds under the pointer and with focus in it. |
| `index` | `number` |  | The quote that shows (controlled). |
| `defaultIndex` | `number` | 0 | The quote that shows first. |
| `onIndexChange` | `function` |  |  |
| `locale` | `string` |  | The BCP 47 locale of the slide names. Default: the `DisplayLocaleProvider`, else "en-US". |
| `labels` | `Partial<TestimonialLabels>` |  |  |

### TestimonialRotatorContent

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

### TestimonialRotatorFaces

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

### TestimonialRotatorFace

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `name` | `string` |  | The person's name: the seed of the face and the name of the button. |
| `src` | `string` |  | A photo; the Open Peeps face shows while it loads and when there is none. |

Also takes every prop of Base UI `Button`: https://base-ui.com/react/components/button

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TestimonialRotator | `testimonial-rotator` |  |  |  |
| TestimonialRotatorContent | `testimonial-rotator-content` | `data-active` |  | `motion-timing` |
| TestimonialRotatorFaces | `testimonial-rotator-faces` |  |  | `motion-timing` |
| TestimonialRotatorFace | `testimonial-rotator-face` | `data-active` |  | `motion-timing` |

## Usage

Put the quotes, then one face per quote.

```tsx title="quote-rotator.tsx"
import {
  Testimonial,
  TestimonialName,
  TestimonialQuote,
  TestimonialRole,
} from "@/components/social/testimonial";
import {
  TestimonialRotator,
  TestimonialRotatorContent,
  TestimonialRotatorFace,
  TestimonialRotatorFaces,
} from "@/components/pro/social/testimonial-rotator";

export function QuoteRotator() {
  return (
    <TestimonialRotator>
      <TestimonialRotatorContent>
        <Testimonial variant="plain" size="xl">
          <TestimonialQuote>“The motion feels designed, not bolted on.”</TestimonialQuote>
        </Testimonial>
        <Testimonial variant="plain" size="xl">
          <TestimonialQuote>“Right-to-left just worked.”</TestimonialQuote>
        </Testimonial>
      </TestimonialRotatorContent>
      <TestimonialRotatorFaces>
        <TestimonialRotatorFace name="Lena Hoffmann">
          <TestimonialName>Lena Hoffmann</TestimonialName>
          <TestimonialRole>Design Lead, Lumen Labs</TestimonialRole>
        </TestimonialRotatorFace>
        <TestimonialRotatorFace name="Amara Nwosu">
          <TestimonialName>Amara Nwosu</TestimonialName>
          <TestimonialRole>EM, Foundry</TestimonialRole>
        </TestimonialRotatorFace>
      </TestimonialRotatorFaces>
    </TestimonialRotator>
  );
}
```

## 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-rotator
```

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

## 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)
- [Testimonial Carousel](https://gelatinui.com/components/testimonial-carousel.md)
- [Announcement Bar](https://gelatinui.com/components/announcement-bar.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves through the faces. |
| Enter | Shows the quote of that face. |
| Space | Shows the quote of that face. |

## Accessibility

A region read as a carousel; only the shown quote is in the tree.

Each face is a button named "Show the quote of" and the name, with `aria-current` on the active one.

## Motion

| Part | Motion |
| --- | --- |
| Quote | popup · rises 8px out of a 4px blur; the old one fades out faster |
| Face tag | panel · the name tag opens by its grid track |
| Time line | progress · fills while the quote shows |
