Testimonial Carousel

A carousel that displays customer testimonials one at a time with auto-play and navigation.

Install

npx @vultra/cli add testimonial-carousel

Usage

<script>
  import { TestimonialCarousel } from '@vultra/ui';

  const testimonials = [
    {
      quote: 'Vultra UI transformed our design system.',
      author: 'Jane Smith',
      role: 'CTO at Acme',
      avatar: '/avatars/jane.jpg',
    },
    {
      quote: 'Best component library we have used.',
      author: 'Bob Johnson',
      role: 'Lead Dev at Startup',
      avatar: '/avatars/bob.jpg',
    },
  ];
</script>

<TestimonialCarousel {testimonials} />

Props

PropTypeDefaultDescription
testimonialsTestimonial[][]Array of testimonial objects
autoPlaybooleantrueAuto-rotate between testimonials
intervalnumber5000Auto-play interval in ms
showDotsbooleantrueShow dot navigation indicators
showArrowsbooleantrueShow prev/next arrow buttons
classstring-Additional CSS classes

Testimonial Properties

PropertyTypeDescription
quotestringTestimonial text
authorstringAuthor name
rolestringAuthor title/company
avatarstringAuthor avatar image URL

Notes

  • Swipe support on touch devices.
  • Transitions between testimonials with a crossfade animation.
  • Pauses auto-play on hover or focus.