Testimonial stack
Testimonial quotes: a grid in the plain version, a deck you flip through in the motion version.
Preview
Quotes sit in a deck. Drag or swipe the top card away, or use the Previous and Next buttons or the arrow keys; the cards behind spring forward. Every quote stays in the list for screen readers. With reduced motion turned on, it renders the plain layout.
What founders say
Sample quotes from fictional people.
We swapped our hero the night before launch and nothing else on the page had to change.
Ana DiazFounder, sample app (fictional) The pricing section took my checkout links as plain hrefs. I had it live before lunch.
Ben OkaforIndie hacker (fictional) It picked up our shadcn theme without a single override, dark mode included.
Cy TanakaDesigner (fictional) I could read every file it installed. That is why I trusted it on a launch page.
Dee MarshSolo developer (fictional)
What founders say
Sample quotes from fictional people.
We swapped our hero the night before launch and nothing else on the page had to change.
Ana DiazFounder, sample app (fictional) The pricing section took my checkout links as plain hrefs. I had it live before lunch.
Ben OkaforIndie hacker (fictional) It picked up our shadcn theme without a single override, dark mode included.
Cy TanakaDesigner (fictional) I could read every file it installed. That is why I trusted it on a launch page.
Dee MarshSolo developer (fictional)
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { TestimonialStack } from "@/components/custom/testimonial-stack/testimonial-stack";
<TestimonialStack
title="What founders say"
items={[
{ quote: "It just worked.", author: "Ana Diaz", role: "Founder", avatar: "/ana.webp" },
]}
/>import { TestimonialStackMotion } from "@/components/custom/testimonial-stack/testimonial-stack-motion";
<TestimonialStackMotion items={quotes} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items* (required) | { quote; author; role?; avatar? }[] | – | Real quotes only. Initials replace a missing avatar. |
| title / description | string | – | Heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| items* (required) | { quote; author; role?; avatar? }[] | – | Real quotes only. Initials replace a missing avatar. |
| title / description | string | – | Heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- A list of figures: each quote is a blockquote with its author in the caption.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.