Staaarter

Masonry Wall

A dense "wall of love" style layout of many short quote cards arranged in a CSS columns-based masonry grid (one column on mobile, up to three on desktop). Card content lengths vary naturally, creating the staggered-height masonry look without any JavaScript masonry library.

By Staaarter Team
Testimonials
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/masonry-wall.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/testimonials/testimonial5.tsx instead.

Usage

The file also exports testimonial5Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Testimonial5, testimonial5Demo } from "@/components/blocks/testimonials/testimonial5";

export default function Page() {
  return <Testimonial5 {...testimonial5Demo} />;
}

Props

PropTypeDefaultDescription
headingReactNodeundefinedSection heading.
descriptionstringundefinedSupporting text below the heading.
quotesWallQuoteItem[]noneCards to lay out in the masonry grid; content lengths can vary freely.
classNamestringnoneExtra classes for the outer section element.

Types

type WallQuoteItem = {
  quote: string;
  name: string;
  role?: string;
};

Behavior notes

  • Fully static, server-rendered section with no interactivity.
  • The masonry effect is pure CSS (`columns-1 sm:columns-2 lg:columns-3` on the grid with `break-inside-avoid` on each card), not a JavaScript masonry library, so column order fills top-to-bottom within each column rather than strictly left-to-right by source order.