Vertical Accordion

Vertical accordion testimonial section with expandable cards.

Main Features of Vertical Accordion

How to Use Vertical Accordion in Next.js

Installation Guide for Vertical Accordion

Props

Customize the component with these props

PropertyTypeDefaultDescription
testimonials
TestimonialItem[][]Array of testimonial items with id, name, role, company, content/text, media, avatar/image, video.
backgroundColor
string#f5f5f5Background color of the component (hex, rgb, or hsl).
textColor
string#000000Default text color (hex, rgb, or hsl).
imageOverlayFrom
stringtransparentStart color of the image overlay gradient (hex, rgb, or hsl).
imageOverlayVia
stringrgba(0,0,0,0.2)Middle color of the image overlay gradient (hex, rgb, or hsl).
imageOverlayTo
stringrgba(0,0,0,0.9)End color of the image overlay gradient (hex, rgb, or hsl).
companyBadgeBgColor
string#ffffffBackground color of company badges (hex, rgb, or hsl).
companyBadgeTextColor
string#000000Text color of company badges (hex, rgb, or hsl).
playButtonBgColor
string#ffffffBackground color of play buttons (hex, rgb, or hsl).
playButtonIconColor
string#000000Icon color of play buttons (hex, rgb, or hsl).
quoteColor
string#ffffffColor of the quote text (hex, rgb, or hsl).
quoteTruncateLength
number60Maximum length of quote text before truncation.
authorNameColor
string#ffffffColor of the author name text (hex, rgb, or hsl).
authorRoleColor
stringrgba(255,255,255,0.7)Color of the author role text (hex, rgb, or hsl).
authorAvatarBorderColor
string#ffffffBorder color of the author avatar images (hex, rgb, or hsl).
inactiveLabelColor
stringrgba(255,255,255,0.7)Color of inactive labels (hex, rgb, or hsl).
inactiveLabelRotate
number-90Rotation angle of inactive labels in degrees.

When to Use

Ideal for storytelling, long-form testimonials, and Next.js sites that want a space-efficient yet dramatic layout. Use this React component for a vertical accordion where cards expand into full-bleed sections with video backgrounds.

Best Practices

Follow React best practices by using high-impact portrait orientation media for the accordion panels. Maintain consistent spacing within your design system by aligning the accordion header. Optimize for performance by lazy-loading the video backgrounds.

Why This Component Matters in Modern UI Development

Vertical accordions allow users to focus intensely on one story at a time. This production-ready UI component helpsคุณ build an interface that feels narrative-driven and expansive, making each testimonial feel like a dedicated feature.

Frequently Asked Questions

QHow do the cards expand?

Each card occupies a thin vertical sliver until hovered or clicked, at which point it smoothly expands to reveal the full content and media.

QCan I use it for video testimonials?

Absolutely, each panel supports an optional video background that brings the client story to life when the card is expanded.

QIs the text truncated?

The `quoteTruncateLength` prop allows you to control how much text is shown in the collapsed state to maintain the visual balance of the accordion.

Vertical Accordion - React Testimonial Card & Grid | Uilora