Testimonials 1: scrolling wall of quotes
A wall of testimonial cards in three columns that scroll at different speeds in opposite directions, pausing on hover, with a plain list on phones.
// Ballmac UI: Testimonials 1. https://ui.ballmac.com/blocks/testimonials-1
import * as React from "react"
import { Avatar, AvatarFallback } from "@/components/ballmac/avatar"
import { Marquee } from "@/components/ballmac/marquee"
import { cn } from "@/lib/utils"
type Testimonial = {
quote: string
name: string
role: string
}
type Testimonials1Props = Omit<React.ComponentProps<"section">, "title"> & {
/** Small label above the heading. */
eyebrow?: string
/** The heading. */
title?: string
/** One sentence under the heading. */
description?: string
/** Quotes, spread across up to three scrolling columns. */
testimonials?: Testimonial[]
}
const defaultTestimonials: Testimonial[] = [
{ quote: "We replaced three internal dashboards in a week. The components read like code we would have written, just calmer.", name: "Maya Okafor", role: "Staff engineer, Acme" },
{ quote: "The dock and window pieces made our web app feel native to our Mac users on day one.", name: "Daniel Reyes", role: "Design lead, Lumen" },
{ quote: "I asked our agent for a pricing page and it picked the right blocks, wired them up and the build passed.", name: "Sara Lindqvist", role: "Founder, Halcyon" },
{ quote: "Motion that respects reduced-motion settings out of the box. That alone saved us an audit finding.", name: "Arjun Mehta", role: "Accessibility lead, Meridian" },
{ quote: "Installs into its own folder, so our shadcn/ui button never got overwritten. Small thing, big trust.", name: "Lena Fischer", role: "Frontend engineer, Parallax" },
{ quote: "The globe went into our hero in five minutes and follows our brand color in both themes.", name: "Tom Becker", role: "Growth engineer, Acme" },
{ quote: "Keyboard support everywhere. Our power users noticed before we told them.", name: "Hana Sato", role: "Product manager, Lumen" },
{ quote: "Honest dependencies, real TypeScript types, no surprise packages. It passes our review checklist.", name: "Chris Walker", role: "Platform engineer, Halcyon" },
{ quote: "Our landing page finally looks as considered as the product behind it.", name: "Nadia Haddad", role: "Head of brand, Meridian" },
]
const initials = (name: string) =>
name
.split(" ")
.map((part) => part[0])
.join("")
.slice(0, 2)
function TestimonialCard({ testimonial }: { testimonial: Testimonial }) {
return (
<figure data-slot="testimonial-card" className="w-full rounded-2xl border bg-card p-5 text-card-foreground shadow-[0_1px_2px_0_rgb(0_0_0/0.04)]">
<blockquote className="text-[15px] leading-relaxed text-pretty">“{testimonial.quote}”</blockquote>
<figcaption className="mt-4 flex items-center gap-3">
<Avatar>
<AvatarFallback>{initials(testimonial.name)}</AvatarFallback>
</Avatar>
<div className="min-w-0 text-sm">
<p className="font-medium">{testimonial.name}</p>
<p className="truncate text-muted-foreground">{testimonial.role}</p>
</div>
</figcaption>
</figure>
)
}
function Testimonials1({
eyebrow = "Loved by builders",
title = "Teams ship calmer interfaces with it.",
description = "What developers and designers say after putting it in front of their users.",
testimonials = defaultTestimonials,
className,
...props
}: Testimonials1Props) {
const columns = [0, 1, 2].map((c) => testimonials.filter((_, i) => i % 3 === c)).filter((col) => col.length > 0)
return (
<section data-slot="testimonials-1" className={cn("mx-auto max-w-6xl px-4 py-20 sm:px-6", className)} {...props}>
<div className="mx-auto max-w-2xl text-center">
<p className="text-sm font-medium text-primary">{eyebrow}</p>
<h2 className="mt-3 text-3xl font-semibold tracking-[-0.035em] text-balance sm:text-5xl">{title}</h2>
<p className="mt-4 text-lg text-pretty text-muted-foreground">{description}</p>
</div>
{/* Scrolling columns on larger screens; a plain list keeps every quote readable on phones. */}
<div className="relative mt-14 hidden h-[560px] grid-cols-3 gap-5 md:grid">
{columns.map((col, i) => (
<Marquee key={i} vertical reverse={i === 1} speed={22 + i * 4} gap={20} fade className="h-full">
{col.map((t) => (
<TestimonialCard key={t.name} testimonial={t} />
))}
</Marquee>
))}
</div>
<ul className="mt-12 grid gap-4 md:hidden">
{testimonials.slice(0, 4).map((t) => (
<li key={t.name}>
<TestimonialCard testimonial={t} />
</li>
))}
</ul>
</section>
)
}
export { Testimonials1, type Testimonials1Props, type Testimonial }Installation
$ pnpm dlx shadcn@latest add @ballmac/testimonials-1Add the Ballmac items it builds on.
$ pnpm dlx shadcn@latest add @ballmac/avatar @ballmac/marqueeCopy the source into your project.
components/ballmac/blocks/testimonials-1/testimonials-1.tsx// Ballmac UI: Testimonials 1. https://ui.ballmac.com/blocks/testimonials-1 import * as React from "react" import { Avatar, AvatarFallback } from "@/components/ballmac/avatar" import { Marquee } from "@/components/ballmac/marquee" import { cn } from "@/lib/utils" type Testimonial = { quote: string name: string role: string } type Testimonials1Props = Omit<React.ComponentProps<"section">, "title"> & { /** Small label above the heading. */ eyebrow?: string /** The heading. */ title?: string /** One sentence under the heading. */ description?: string /** Quotes, spread across up to three scrolling columns. */ testimonials?: Testimonial[] } const defaultTestimonials: Testimonial[] = [ { quote: "We replaced three internal dashboards in a week. The components read like code we would have written, just calmer.", name: "Maya Okafor", role: "Staff engineer, Acme" }, { quote: "The dock and window pieces made our web app feel native to our Mac users on day one.", name: "Daniel Reyes", role: "Design lead, Lumen" }, { quote: "I asked our agent for a pricing page and it picked the right blocks, wired them up and the build passed.", name: "Sara Lindqvist", role: "Founder, Halcyon" }, { quote: "Motion that respects reduced-motion settings out of the box. That alone saved us an audit finding.", name: "Arjun Mehta", role: "Accessibility lead, Meridian" }, { quote: "Installs into its own folder, so our shadcn/ui button never got overwritten. Small thing, big trust.", name: "Lena Fischer", role: "Frontend engineer, Parallax" }, { quote: "The globe went into our hero in five minutes and follows our brand color in both themes.", name: "Tom Becker", role: "Growth engineer, Acme" }, { quote: "Keyboard support everywhere. Our power users noticed before we told them.", name: "Hana Sato", role: "Product manager, Lumen" }, { quote: "Honest dependencies, real TypeScript types, no surprise packages. It passes our review checklist.", name: "Chris Walker", role: "Platform engineer, Halcyon" }, { quote: "Our landing page finally looks as considered as the product behind it.", name: "Nadia Haddad", role: "Head of brand, Meridian" }, ] const initials = (name: string) => name .split(" ") .map((part) => part[0]) .join("") .slice(0, 2) function TestimonialCard({ testimonial }: { testimonial: Testimonial }) { return ( <figure data-slot="testimonial-card" className="w-full rounded-2xl border bg-card p-5 text-card-foreground shadow-[0_1px_2px_0_rgb(0_0_0/0.04)]"> <blockquote className="text-[15px] leading-relaxed text-pretty">“{testimonial.quote}”</blockquote> <figcaption className="mt-4 flex items-center gap-3"> <Avatar> <AvatarFallback>{initials(testimonial.name)}</AvatarFallback> </Avatar> <div className="min-w-0 text-sm"> <p className="font-medium">{testimonial.name}</p> <p className="truncate text-muted-foreground">{testimonial.role}</p> </div> </figcaption> </figure> ) } function Testimonials1({ eyebrow = "Loved by builders", title = "Teams ship calmer interfaces with it.", description = "What developers and designers say after putting it in front of their users.", testimonials = defaultTestimonials, className, ...props }: Testimonials1Props) { const columns = [0, 1, 2].map((c) => testimonials.filter((_, i) => i % 3 === c)).filter((col) => col.length > 0) return ( <section data-slot="testimonials-1" className={cn("mx-auto max-w-6xl px-4 py-20 sm:px-6", className)} {...props}> <div className="mx-auto max-w-2xl text-center"> <p className="text-sm font-medium text-primary">{eyebrow}</p> <h2 className="mt-3 text-3xl font-semibold tracking-[-0.035em] text-balance sm:text-5xl">{title}</h2> <p className="mt-4 text-lg text-pretty text-muted-foreground">{description}</p> </div> {/* Scrolling columns on larger screens; a plain list keeps every quote readable on phones. */} <div className="relative mt-14 hidden h-[560px] grid-cols-3 gap-5 md:grid"> {columns.map((col, i) => ( <Marquee key={i} vertical reverse={i === 1} speed={22 + i * 4} gap={20} fade className="h-full"> {col.map((t) => ( <TestimonialCard key={t.name} testimonial={t} /> ))} </Marquee> ))} </div> <ul className="mt-12 grid gap-4 md:hidden"> {testimonials.slice(0, 4).map((t) => ( <li key={t.name}> <TestimonialCard testimonial={t} /> </li> ))} </ul> </section> ) } export { Testimonials1, type Testimonials1Props, type Testimonial }Update the import paths to match your project setup.
Usage
import { Testimonials1 } from "@/components/ballmac/blocks/testimonials-1/testimonials-1"
export default function Testimonials1Demo() {
return <Testimonials1 />
}States
This block has no states. Static content: nothing to load, submit or fail.
Quality scorecard
Every applicable check passes
Measured in Chromium 153.0.8010.12 on October 19, 2026, on version 1.0.0, across 1 example.
Passed: Accessibility scan
No serious or critical issues in light and dark, on a phone and a desktop (axe-core 4.13.0, WCAG 2.1 AA and best-practice rules).
Passed: Small screens
No sideways scrolling at 360, 390 or 1280 px wide.
Passed: Reduced motion
Every endless animation stops when the visitor asks for less motion.
Passed: Right to left
Mirrors correctly in Arabic, Hebrew, Persian and Urdu layouts (0% of elements off the mirror, limit 15%).
Passed: Clean console
No console errors or React hydration errors while loading.
Not applicable: Keyboard
Static content: nothing to focus.
Not applicable: Loading, empty and error
Static content: nothing to load, submit or fail.
For information: Automated tests
No test file of its own yet.
For information: Footprint
2.0 KB of source (gzip) in 1 file. No extra npm packages.
Automated checks find a subset of problems and do not replace testing with a screen reader and a keyboard in your own app. What they miss.
Dependencies
- npm
- None
Use with AI
Social proof section: pass `testimonials` ({ quote, name, role }[]); they are spread across three vertical marquees. Replace the placeholder quotes with real ones. With the shadcn MCP server set up (guide), ask your agent:
Add the Ballmac UI Testimonials 1: scrolling wall of quotes (@ballmac/testimonials-1) to this project with the shadcn MCP, then use it where it fits.
Use it for
- Landing pages after features or pricing
- Showing many short quotes without a carousel
Not for
- One or two quotes (use a single large quote in a section)
Registry JSON: https://ui.ballmac.com/r/testimonials-1.json
Free to use in personal and commercial projects.
More testimonials blocks
Testimonials 2: featured quote with avatar picker
One large quote at a time with the person, role and a highlighted result. A row of avatars switches quotes with arrow keys; optional gentle autoplay that pauses on hover and focus.
Testimonials Pro 1: filterable wall of love
A masonry wall of quotes with topic chips, star ratings, one highlighted quote and a polite live count of what is shown.
Testimonials Pro 2: two rows of moving quotes
Two rows of quote cards that scroll in opposite directions, with a visible pause button, pause on hover and focus, and a static scrollable row under reduced motion.
Testimonials Pro 3: one big quote with a person picker
A single large quote with a result chip, switched by avatar tabs that follow the tabs pattern with arrow keys, Home and End.
Ballmac UI Pro
Need the whole screen, not one piece?
311 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.
Not ready? Try three Pro blocks free
Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.