Depth Testimonials, animated React component
Testimonials stacked down a corridor: the front card reads clearly and the rest wait behind it, softer and further away. Next flies the front card past you while the deck surges forward and overshoots, and you can drag the deck to pull it through by hand.
- Free
- Testimonials
- Spring
- 3D
Like Depth Testimonials? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Depth Testimonials stays free.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Testimonials
Loved by people who ship
We rebuilt the pricing page in an afternoon. The motion feels expensive and the code reads like we wrote it.
Reduced motion is handled for us. Our accessibility review took ten minutes instead of a week.
Launch week sign-ups were up a third. People kept replying to the email just to ask how the page moves.
The springs are tuned by someone who cares. Every card lands exactly where your eye expects it.
Drag the deck, or use the arrows.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| items | DepthTestimonial[] | DEFAULT_DEPTH_TESTIMONIALS | Testimonials, front first: { quote, name, role?, tone?: [string, string] }. tone is the avatar gradient. |
| quotes | string[] | — | Plain quotes without bylines (older API); used when items is not given. |
| heading | string | "Loved by people who ship" | Heading above the deck. An empty string hides the header. |
| eyebrow | string | "Testimonials" | Small caption above the heading. |
| hint | string | "Drag the deck, or use the arrows." | Hint under the controls. An empty string hides it. |
| interval | number | 0 | Auto-advance every this many ms, paused on hover and focus. 0 turns it off. |
| onChange | (index: number) => void | — | Called with the index of the testimonial that comes to the front. |
| autoplay | boolean | false | Pulls the deck and flies cards past every 2.8s until someone touches it. |
| className | string | — | Extra classes for the section. |
Add it to your project
- 1
Set up your project once
You need a Next.js project with Tailwind CSS and the
@/import alias. In its root folder, run this once. It createscomponents.jsonand thecn()helper insrc/lib/utils.ts:npx shadcn@latest init -d
Starting from nothing? The Quick Start walks through the whole thing.
- 2
Connect the registry
Run this once per project. It writes the Nexus UI entry into
components.jsonfor you:npx shadcn@latest registry add "@nexus-labs=https://www.nexus-ui.com/api/registry/{name}"Type it exactly as shown.
{name}is filled in by the CLI with the component you ask for, so you never replace it.
- 3
Add the component
Run this from your project root. It adds the component, the helpers it imports and its npm packages.
npx shadcn@latest add @nexus-labs/depth-testimonials
- 4
Check what was added
With a project made as in the Quick Start (a
src/folder), these files land in it:components/depth-testimonials/depth-testimonials.tsxindex.ts - 5
Copying by hand? Skip the registry
Instead of steps 2 and 3 you can copy the files yourself, with no registry and no API key. Step 1 still applies, so that
cn()exists. Install the packages:npm install framer-motion
Then show the source and create each file at the path it gives:
- 6
Use it in a page
Installing only adds the files. Import the component in a page and render it. The Usage tab on the preview shows a fuller example with props:
// src/app/page.tsx import { DepthTestimonials } from "@/components/depth-testimonials"; export default function Page() { return ( <main> <DepthTestimonials /> </main> ); }
Like Depth Testimonials? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Depth Testimonials stays free.
About Depth Testimonials
Depth Testimonials stacks testimonial panels in a layered plane arrangement with staggered Framer Motion scroll reveal animations. Each card enters the viewport with a slight depth offset, creating the impression of cards placed at different distances from the viewer. The visual hierarchy keeps the featured quote prominent while secondary testimonials provide supporting context. Best for products with strong customer proof where a flat card grid would undersell the volume of positive feedback.
Good for
- Customer testimonial sections
- Case study preview blocks
- Partner and agency testimonial walls
- Review and rating displays
Depth Testimonials questions
How do I install Depth Testimonials?
Run `npx shadcn@latest add @nexus-labs/depth-testimonials`. It installs framer-motion and lucide-react.
How do I add my testimonials?
Pass `items` as `{ quote, name, role?, tone? }`, where `tone` is an optional pair of colors. A plain `quotes` string array also works, and `heading` sets the section title.
Can I change or turn off autoplay?
`interval` sets the auto-advance time in milliseconds (default 4800), and 0 turns it off. It pauses while the pointer is over the section and does not autoplay when reduced motion is on.
Can users navigate it themselves?
Yes. Previous and next buttons and a row of dot buttons, each with an accessible label, let users move through the quotes. It also supports dark mode through Tailwind `dark:` classes.