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.
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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | undefined | Section heading. |
| description | string | undefined | Supporting text below the heading. |
| quotes | WallQuoteItem[] | none | Cards to lay out in the masonry grid; content lengths can vary freely. |
| className | string | none | Extra 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.
More Testimonials Blocks
View all →Single Large Quote
One large centered pull-quote with a decorative quote mark and a simple avatar attribution below.
Three Column Grid
Responsive grid of quote cards, each with a star rating, avatar, name, role, and quote text.
Quote Carousel
Interactive one-at-a-time quote carousel with prev/next arrows and clickable dot indicators.
Video Testimonial Grid
Grid of video-style testimonial cards, each a 16:9 thumbnail with a play-button overlay and a caption.
Quote With Stats Sidebar
Split layout pairing a large quote and attribution with a sidebar of 2-3 result stats.
Logo And Quote Combo
Grid of company-attributed quotes, each paired with a bold text wordmark instead of a real logo image.