---
title: "Testimonial Carousel"
description: "Shows one large quote at a time, with the next and the last quotes dimmed at the sides. It moves on its own, by arrows, by dots, or by a swipe."
url: https://gelatinui.com/components/testimonial-carousel
markdown_url: https://gelatinui.com/components/testimonial-carousel.md
access: free
install: "npx shadcn@latest add @gelatin-ui/testimonial-carousel"
registry_item: https://gelatinui.com/r/testimonial-carousel.json
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Testimonial Carousel

> Shows one large quote at a time, with the next and the last quotes dimmed at the sides. It moves on its own, by arrows, by dots, or by a swipe.

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

## When to use it

Best for: Five to ten long quotes, one at a time.

- Set `interval={0}` to turn autoplay off.

## When not to use it

- For one big quote with the speakers as faces, use [Testimonial Rotator](https://gelatinui.com/components/testimonial-rotator.md).

## Notes for agents

- Put one `Testimonial` per child in `TestimonialCarouselContent`, then `TestimonialCarouselControls`.

## Anatomy

```text
TestimonialCarousel
├─ TestimonialCarouselContent (0..n)
└─ TestimonialCarouselControls (0..n)
```

## API reference

### TestimonialCarousel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `opts` | `Partial<OptionsType>` |  | Embla options (`loop`, `align`, `slidesToScroll`, `dragFree`, `startIndex`, `breakpoints`). |
| `orientation` | `"horizontal" \| "vertical"` |  |  |
| `setApi` | `function` |  | Gets the Embla API once it starts, for your own controls and events. |
| `slideLabel` | `function` |  | The name of each slide for screen readers. Translate it. Default: "2 of 5". |
| `statusLabel` | `function` |  | The name of each dot. Translate it. Default: "Slide 2 of 5". |
| `labels` | `Partial` |  | The words of the parts (`CAROUSEL_LABELS`). Keep the object stable. |
| `interval` | `number` | 7000 | Time on each quote in ms before the next one comes; 0 turns autoplay off. It stops under the pointer and with focus in it, and for good after a swipe, an arrow, or a dot. |

### TestimonialCarouselContent

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

### TestimonialCarouselControls

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TestimonialCarousel | `testimonial-carousel` |  |  |  |
| TestimonialCarouselContent | `testimonial-carousel-content` | `data-selected` |  | `motion-timing` |
| TestimonialCarouselControls | `testimonial-carousel-controls` |  |  |  |

## Usage

Put the quotes in the content, then the controls.

The sample also uses `testimonial`, which this add does not write. One command adds them with this item:

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

```tsx title="quote-carousel.tsx"
import {
  Testimonial,
  TestimonialAuthor,
  TestimonialAvatar,
  TestimonialName,
  TestimonialPerson,
  TestimonialQuote,
} from "@/components/social/testimonial";
import {
  TestimonialCarousel,
  TestimonialCarouselContent,
  TestimonialCarouselControls,
} from "@/components/social/testimonial-carousel";

export function QuoteCarousel() {
  return (
    <TestimonialCarousel>
      <TestimonialCarouselContent>
        <Testimonial variant="outline" size="lg">
          <TestimonialQuote>“We rebuilt our whole settings area in a week.”</TestimonialQuote>
          <TestimonialAuthor>
            <TestimonialAvatar name="Maya Lindqvist" />
            <TestimonialPerson>
              <TestimonialName>Maya Lindqvist</TestimonialName>
            </TestimonialPerson>
          </TestimonialAuthor>
        </Testimonial>
      </TestimonialCarouselContent>
      <TestimonialCarouselControls />
    </TestimonialCarousel>
  );
}
```

## 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/testimonial-carousel
```

It adds 18 registry items: 15 files, 2804 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `embla-carousel`, `embla-carousel-autoplay`, `embla-carousel-react`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Carousel](https://gelatinui.com/components/carousel.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)
- [Carousel](https://gelatinui.com/components/carousel.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Left Arrow | Shows the previous quote. |
| Right Arrow | Shows the next quote. |
| Tab | Moves to the arrows and the dots. |

## Accessibility

A region read as a carousel, each slide named "2 of 6".

Autoplay stops on hover, on focus, and for good after an arrow or a dot.

## Motion

| Part | Motion |
| --- | --- |
| Neighbours | fade · the quotes beside the shown one fade to 35% |
