Skip to content

Testimonials Carousel

One large quote at a time with initials avatar and role, cross-fading between slides; progress dots, a 01 / 04 counter and round prev/next buttons, arrow-key navigation.

minimal/section/testimonials-carousel
Open ↗

Source

"use client";

import { useId, useState } from "react";
import { ArrowLeft, ArrowRight } from "lucide-react";
import { cn } from "@/lib/utils";

export interface TestimonialsCarouselItem {
  quote: string;
  name: string;
  title: string;
  company: string;
}

export interface TestimonialsCarouselProps {
  eyebrow?: string;
  items?: TestimonialsCarouselItem[];
  className?: string;
}

const DEFAULT_ITEMS: TestimonialsCarouselItem[] = [
  {
    quote: "We went from 400 pages a week to 60. Tracewise didn’t just route alerts better — it gave our engineers their evenings back.",
    name: "Priya Raman",
    title: "VP Engineering",
    company: "Northwind",
  },
  {
    quote: "The first incident we ran in Tracewise had a clean timeline and a postmortem draft before the call ended. Nobody wants to go back.",
    name: "Daniel Okafor",
    title: "Staff SRE",
    company: "Lumen",
  },
  {
    quote: "Our status page used to lag the outage by twenty minutes. Now it flips before customers tweet about it.",
    name: "Hannah Weiss",
    title: "Head of Support",
    company: "Parcel",
  },
  {
    quote: "Migrating 40 rotations from PagerDuty took one afternoon and one pull request. That’s the whole review.",
    name: "Tomás Herrera",
    title: "Platform Lead",
    company: "Heliograph",
  },
];

function initials(name: string) {
  return name
    .split(" ")
    .map((p) => p[0])
    .join("")
    .slice(0, 2);
}

/** One large quote at a time with prev/next buttons, dot pager and a cross-fade; arrow keys work when focused. */
export function TestimonialsCarousel({ eyebrow = "Customers", items = DEFAULT_ITEMS, className }: TestimonialsCarouselProps) {
  const [index, setIndex] = useState(0);
  const id = useId();
  const count = items.length;
  const go = (d: number) => setIndex((i) => (i + d + count) % count);

  return (
    <section
      aria-roledescription="carousel"
      aria-label="Customer testimonials"
      className={cn("da-section bg-da-bg text-da-fg", className)}
      onKeyDown={(e) => {
        if (e.key === "ArrowLeft") go(-1);
        if (e.key === "ArrowRight") go(1);
      }}
    >
      <div className="da-container">
        <div className="mx-auto max-w-3xl">
          <p className="font-da-mono text-xs text-da-accent-fg">{eyebrow}</p>
          <div className="relative mt-6 grid">
            {items.map((t, i) => (
              <figure
                key={t.name}
                id={`${id}-${i}`}
                role="group"
                aria-roledescription="slide"
                aria-label={`${i + 1} of ${count}`}
                aria-hidden={i !== index}
                inert={i !== index}
                className={cn(
                  "col-start-1 row-start-1 transition-[opacity,translate] duration-(--da-duration-slow) ease-da motion-reduce:transition-none",
                  i === index ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0",
                )}
              >
                <blockquote className="text-[clamp(1.5rem,3.2vw,2.25rem)] leading-[1.25] font-medium tracking-da-display text-balance">“{t.quote}”</blockquote>
                <figcaption className="mt-8 flex items-center gap-3">
                  <span aria-hidden className="grid size-10 place-items-center rounded-full bg-da-accent text-sm font-medium text-da-accent-fg">
                    {initials(t.name)}
                  </span>
                  <span className="text-sm">
                    <span className="block font-medium">{t.name}</span>
                    <span className="block text-da-muted-fg">
                      {t.title}, {t.company}
                    </span>
                  </span>
                </figcaption>
              </figure>
            ))}
          </div>
          <div className="mt-10 flex items-center justify-between border-t border-da-border pt-6">
            <div className="flex gap-1.5" role="group" aria-label="Choose testimonial">
              {items.map((t, i) => (
                <button
                  key={t.name}
                  type="button"
                  aria-label={`Show testimonial ${i + 1}: ${t.company}`}
                  aria-current={i === index ? "true" : undefined}
                  aria-controls={`${id}-${i}`}
                  onClick={() => setIndex(i)}
                  className={cn("da-focus da-transition h-1.5 rounded-full", i === index ? "w-6 bg-da-fg" : "w-1.5 bg-da-border-strong hover:bg-da-muted-fg")}
                />
              ))}
            </div>
            <div className="flex items-center gap-2">
              <p className="mr-2 font-da-mono text-xs text-da-muted-fg tabular-nums" aria-live="polite">
                {String(index + 1).padStart(2, "0")} / {String(count).padStart(2, "0")}
              </p>
              <button
                type="button"
                onClick={() => go(-1)}
                aria-label="Previous testimonial"
                className="da-focus da-transition da-stroke grid size-9 place-items-center rounded-full hover:bg-da-muted"
              >
                <ArrowLeft aria-hidden className="size-4" />
              </button>
              <button
                type="button"
                onClick={() => go(1)}
                aria-label="Next testimonial"
                className="da-focus da-transition da-stroke grid size-9 place-items-center rounded-full hover:bg-da-muted"
              >
                <ArrowRight aria-hidden className="size-4" />
              </button>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

export default TestimonialsCarousel;

modules/minimal/section/testimonials-carousel/index.tsx

Props

PropTypeDefaultDescription
eyebrowstring—Mono label.
items{ quote, name, title, company }[]—Slides.
classNamestring—Classes on the section.

Other testimonials variants in Minimal

Testimonials in other art directions

Testimonials Big Quote

Full-bleed blue section showing one giant uppercase quote at a time with a tilted yellow metric card, author row, pressable prev/next buttons and bar-shaped pagination.

BrutalistTestimonials

Testimonials Logos

Case-study strip: four ruled cells, each with a company wordmark, a giant result number, its label and a one-line quote, alternating solid and paper tones.

BrutalistTestimonials

Testimonials Posts

Social-post wall: ruled cards styled like timeline posts (square colored avatar, handle, date, casual copy, reply/repost/like counts) in a 3-column grid with a 'see more' CTA.

BrutalistTestimonials

Testimonials Wall

Wall of quote cards in alternating solid colors with hard shadows, initials avatars and optional rotated metric stickers ("2× adoption").

BrutalistTestimonials

Testimonials Deck

Stacked deck of glass testimonial cards offset in depth; a ‘Next story’ button sends the top card to the back and the others slide forward, with a live counter.

GlassTestimonials

Testimonials Marquee

Two rows of frosted testimonial cards scrolling infinitely in opposite directions with faded edges, pause on hover, star rating summary above. A static sr-only list carries the content for assistive tech.

GlassTestimonials

Testimonials Masonry

Rating summary pill (stars, 4.9/5, review count) above a masonry wall of glass quote cards with star ratings; one highlight card is filled with the brand gradient.

GlassTestimonials

Testimonials Video

Three video-testimonial glass cards with gradient posters, initials, play button and duration; opening one expands a glass player panel above with headline, quote and author.

GlassTestimonials

Testimonials Grid

Hairline grid of short quotes (gap-px on a border-colored background) — 3 columns desktop, each cell with the quote and mono attribution; no cards, no shadows.

Mono CleanTestimonials

Testimonials List

Testimonials as an editorial ruled list: each row pairs a mono index + name/studio/city on the left with the quote on the right in a larger size; rows separated by hairlines.

Mono CleanTestimonials

Testimonials Marquee

Slow horizontal ticker of short quotes in large display type, separated by signal dots, between two ink rules; pauses on hover, static and wrapped with reduced motion. Pure CSS.

Mono CleanTestimonials

Testimonials Quote

One oversized pull quote set in the display face with a hanging opening quote mark, mono attribution under a short ink rule; lots of whitespace.

Mono CleanTestimonials

Testimonials Cards

Clean 3-column grid of bordered quote cards with company name header, quote, and initials avatar + role footer divided by a hairline.

Neo CorporateTestimonials

Testimonials Case Study

Featured customer story: bordered card split into a company quote (logo wordmark, quote, author) and a tinted column of three big result metrics with a “Read the case study” link.

Neo CorporateTestimonials

Testimonials Logos

Row of customer wordmark buttons acting as tabs; selecting one swaps the quote, author and key metric below.

Neo CorporateTestimonials

Testimonials Ratings

Review-site proof: rating tiles per platform (score + stars + review count), a row of award badges, and two review excerpts.

Neo CorporateTestimonials

Testimonials Carousel

Gentle one-at-a-time carousel on a sage band: serif quote cross-fades, round prev/next buttons, leaf-shaped position dots; no autoplay.

Organic SoftTestimonials

Testimonials Notes

Kind words as handwritten-feeling notes: slightly tilted paper/sage/clay cards with italic serif quotes and a small “pinned” dot, straightening on hover.

Organic SoftTestimonials

Testimonials Portrait

Single large testimonial: an arch-shaped sage “portrait” with big initials and a leaf, next to a large serif quote, attribution and a clay result chip.

Organic SoftTestimonials

Testimonials Wall

Masonry wall of soft rounded quote cards in mixed tints (CSS columns), each with a small leaf-dot avatar, name and role.

Organic SoftTestimonials

Testimonials Bubbles

Testimonials as a friendly group chat: alternating pastel speech bubbles with round avatars and names inside a big white phone-like card, next to the section title.

Soft FlatTestimonials

Testimonials Notes

Wall of pastel sticky notes, slightly rotated with a round periwinkle pin on top, each holding a bold short quote and author; notes straighten on hover.

Soft FlatTestimonials

Testimonials Slider

Horizontal slider of pastel testimonial cards with star ratings; round prev/next buttons move one card at a time and pill dots show the position.

Soft FlatTestimonials

Testimonials Spotlight

One big quote on a mint block with a giant quote mark, a flat shape avatar, three white stat bubbles and a row of customer wordmarks below.

Soft FlatTestimonials