Loading component…
Loading component…
The landing-page wall of quotes
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>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| 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 | |
| columns | 1 \| 2 \| 3 | 3 | Most columns on a wide container; the wall itself drops to 2 below 740px and 1 below 480px of its own width |
| speed | number | 28 | Pixels per second of the first column; the others run about 15 % slower and faster, in alternating directions |
| pauseOnHover | boolean | true | Ease the hovered column to a stop and wind it back up on leave. Keyboard focus always stops its column |
| label | string | "What customers say" | Accessible name of the wall |
| className | string | Extra class on the wrapper. Set the height with --ui-tw-height (600px by default) and the edge fade with --ui-tw-fade (96px) |
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"
@import "tailwindcss"; in your main CSS file.