Black Friday: 30% off Pro

Get 30% off

Updated

Testimonial Carousel

Preview

Customize

Interval2s
Snug

Installation

npx shadcn@latest add https://uibrik.com/r/testimonial-carousel.json
Adds the files to components/uibrik/testimonial-carousel and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/testimonial-carousel.

Usage

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}/>

Where to use Testimonial Carousel

  • 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.

Props

TestimonialCarousel
autoplay
Type boolean
true
Advance on a timer. Pauses while the pointer or focus is inside.
interval
Type number
2
How long each quote stays with autoplay on.
fit
Type "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.
testimonials
Type { quote: string; name: string; role?: string; avatar?: string }[]
4 sample quotes
The testimonials, in order.
className
Type string
–
Classes for the wrapper.