affectUI › Blocks › Social proof

Testimonial Wall

The landing-page wall of quotes – columns that scroll endlessly in opposite directions, ease to a stop on hover and scrub with inertia.

Free and open source (MIT). Install: npx shadcn@latest add https://www.affectui.com/r/testimonial-wall.json · Import from @/components/ui/testimonial-wall

When to use

  • A “Loved by” section on a landing or pricing page with eight or more quotes
  • Social proof that should feel alive without asking for attention – it runs slowly and stops the moment someone reads

When not to use

  • Two or three quotes – show them side by side; a loop of three repeats too obviously
  • A single hero quote or a case study – it deserves a static, larger layout
  • Reviews people need to search or filter – use a list or grid

Usage

import { TestimonialWall } from "@/components/ui/testimonial-wall";

const items = [
  {
    quote: "We replaced three half-finished internal kits with it in a sprint.",
    name: "Lena Hartmann",
    role: "Design Lead",
    company: "Fieldnote",
    avatar: "/avatars/lena.jpg",
    rating: 5,
  },
  {
    quote: "The motion is the part nobody notices – which is exactly the point.",
    name: "Jonas Weber",
    role: "Staff Engineer",
    company: "Ledgerline",
    verified: true,
  },
  // … at least two quotes per column, ideally four or more
];

export function Testimonials() {
  return (
    <section className="py-24">
      <p className="text-center text-sm text-neutral-500">Testimonials</p>
      <h2 className="mb-10 text-center text-3xl font-semibold tracking-tight">Loved by product teams</h2>
      <TestimonialWall items={items} speed={26} className="[--ui-tw-height:640px]" />
    </section>
  );
}

Props

NameTypeDefaultDescription
items{ quote, name, role?, company?, avatar?, rating?, verified? }[]The quotes. avatar is a photo URL – without one, or when it fails to load, the initials sit on a soft gray circle. rating (1–5) adds a small gray star row, verified a gray check beside the name. Quotes keep their line breaks and stop at ten lines; role and company wrap once, then end in an ellipsis. Fewer quotes than columns use fewer columns; none shows a short empty note
columns1 | 2 | 33Most columns on a wide container; the wall itself drops to 2 below 740px and 1 below 480px of its own width
speednumber28Pixels per second of the first column; the others run about 15 % slower and faster, in alternating directions
pauseOnHoverbooleantrueEase the hovered column to a stop and wind it back up on leave. Keyboard focus always stops its column
labelstring"What customers say"Accessible name of the wall
classNamestringExtra class on the wrapper. Set the height with --ui-tw-height (600px by default) and the edge fade with --ui-tw-fade (96px)

Keyboard

  • Tab: Moves through the quotes; the focused card's column stops and the card is nudged into view
  • Shift / Tab: Moves back; leaving the wall lets the columns run again

Accessibility

  • A labelled region; every quote is a figure with a blockquote and a figcaption, read out once – the copies that make the loop are aria-hidden and inert
  • Keyboard focus stops the column, so a card never runs away from the focus ring
  • Hover, focus and press-and-hold all stop the motion, which covers the WCAG pause requirement for moving content
  • Star ratings are an image with a text label (“Rated 5 out of 5”), the check is labelled “Verified customer”
  • Reduced motion shows every quote once in a static masonry grid

Responsive

  • Columns follow the wall's own width (3 / 2 / 1), so it works in a sidebar as well as full width
  • One column on phones with 15px quotes; names win over role and company when space is tight – down to 320px without overflow
  • Touch: vertical swipes keep scrolling the page (no scroll trap); pressing and holding a column pauses it to read
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19

Related

  • Logo Marquee – The endless “Trusted by” strip – a seamless loop that eases to a stop on hover, scrubs with inertia and lifts the hovered logo to colour
  • Tilt Card – A card that tilts in 3D towards the pointer, with a soft glare that follows it and a smooth spring back
  • Text Reveal – Text that arrives word by word or letter by letter – each piece rises out of a soft blur as it scrolls into view