# Testimonial Carousel

> One large quote at a time over a faint oversized quote mark, with a pill pager below; the frame eases to each quote's height, and it swipes and steps with the arrow keys.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Blocks › Testimonials |
| Live preview | https://uibrik.com/components/testimonial-carousel |
| Writes | 1 file into `components/uibrik/testimonial-carousel/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/testimonial-carousel.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/testimonial-carousel`.

Can't run commands? https://uibrik.com/components/testimonial-carousel/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { TestimonialCarousel } from "@/components/uibrik/testimonial-carousel/testimonial-carousel";

const testimonials = [
  {
    quote: "We replaced three tools with this one. The team stopped asking where things live.",
    name: "Maya Chen",
    role: "Head of Product, Northwind",
    avatar: "/registry/testimonial-carousel/maya.webp",
  },
  {
    quote:
      "Setup took an afternoon. Six months later nobody has needed to think about it, which is exactly what we wanted from the infrastructure underneath our whole release process.",
    name: "Daniel Okafor",
    role: "Engineering Lead, Fieldnote",
    avatar: "/registry/testimonial-carousel/daniel.webp",
  },
  // …2 more
];

<TestimonialCarousel
  autoplay
  interval={2}
  fit="snug"
  testimonials={testimonials}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/testimonial-carousel.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `autoplay` | `boolean` | `true` | Advance on a timer. Pauses while the pointer or focus is inside. |
| `interval` | `number` | `2` | How long each quote stays with autoplay on. |
| `fit` | `"snug" \| "tallest"` | `"snug"` | Snug eases the height to each quote, so the pager follows. Tallest holds the height of the longest quote, so the pager never moves. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `testimonials` | `{ quote: string; name: string; role?: string; avatar?: string }[]` | `4 sample quotes` | The testimonials, in order. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Single-quote sections**: One large quote at a time over a faint quote mark gives each customer full attention.
- **Case study highlights**: The frame easing to each quote's height handles short and long quotes.
- **Service sites**: Swipe and arrow keys make it accessible on mobile and desktop.

## Same shelf: Testimonials

- [Testimonial Orbit](https://uibrik.com/components/testimonial-orbit.md) (Pro): Customer photos on a slow ring around one quote; picking a face flies it into the middle while the quote cross-fades. On narrow screens the ring becomes an arch above the quote.
- [Testimonial Wall](https://uibrik.com/components/testimonial-wall.md) (Pro): Columns or rows of quote cards that scroll endlessly at their own pace, neighbours running against each other; hovering a lane stops it so the quote can be read.
- [Mesh Testimonial](https://uibrik.com/components/mesh-testimonial.md) (Pro): Tall testimonial cards painted with a live mesh gradient in each person's own colour, in an endless row that autoplays, drags and steps with arrows; paint every card, or only the one in the spotlight.
- [Testimonial Bubbles](https://uibrik.com/components/testimonial-bubbles.md) (Pro): Customer photos float in a cluster of different sizes; pick one and it glides to the centre, its neighbours drift aside, and the bubble opens into a card with the quote.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/testimonial-carousel/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
