Image Expand Testimonial

An interactive testimonial section with smooth image expansion animations, autoplay, and responsive design.

Marcus Johnson
Elena Rodriguez
David Kim
Sarah Chen

Sarah Chen

TechCorp Inc.
This component library has transformed our development workflow. The attention to detail is remarkable.

Installation

pnpm dlx rareui add imageExpandTestimonial

Usage

1

Import the component

import { ImageExpandTestimonial } from "@/components/rareui/Sections/imageExpandTestimonial";
2

Define your testimonials data

const testimonials = [ { id: "1", name: "Sarah Chen", role: "VP of Engineering", company: "TechCorp Inc.", quote: "This component library has transformed our development workflow.", image: "https://example.com/image.jpg", rating: 5, }, // Add more testimonials... ];
3

Use in your application

export default function TestimonialsSection() { return ( <ImageExpandTestimonial testimonials={testimonials} autoPlayInterval={3000} /> ); }

Features

Framer Motion powered spring animations for fluid image transitions.

Props

Props

PropTypeDefaultDescription
testimonialsTestimonial[]-Array of testimonial objects containing id, name, role, company, quote, image, and optional rating.
autoPlayIntervalnumber5000Interval in milliseconds for auto-advancing testimonials.
classNamestring-Additional CSS classes for the container.

Testimonial Object

Props

PropTypeDefaultDescription
idstring-Unique identifier for the testimonial.
namestring-Name of the person giving the testimonial.
rolestring-Job title or role of the person.
companystring-Company or organization name.
quotestring-The testimonial text.
imagestring-URL of the person's image.
ratingnumber5Rating from 0-5, supports half values (e.g., 4.5).