Skip to content

    Browse components

    Testimonial Carousel

    One testimonial at a time with avatar, star rating and quote. Swipe, arrows, dots, and auto-play that pauses on hover.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/testimonial-carousel

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/testimonial-carousel.json

    Usage

    import { TestimonialCarousel } from "@/components/ui/testimonial-carousel";
    
    <TestimonialCarousel
      testimonials={[
        { quote: "Best library we have used.", name: "Maya Okafor", role: "Design Engineer", avatar: "/maya.jpg", rating: 5 },
      ]}
    />

    Props

    PropTypeDefaultDescription
    testimonialsReactNode—Array of { quote, name, role, avatar, rating? }.
    autoPlaybooleantrueAdvance automatically; pauses on hover and focus.
    intervalnumber5000Ms each testimonial stays on screen.
    swipeThresholdnumber60Px of swipe needed to change slide.
    starColorstring"#facc15"Star color.
    classNamestring—Extra classes for the root element.