Skip to content

Block 33 of 297

Testimonial Grid

Masonry wall of short quotes with names, roles and photos, falling back to initials when there's no photo.

Puck key
TestimonialGridBlock
Export
testimonialGridBlock
React component
<TestimonialGrid />
Path
components/puck/testimonial-grid-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

A masonry wall of up to twelve short quotes on a light gray background, each card with the speaker's name, role and a small photo or initials. It uses CSS columns, so cards of different lengths pack together without gaps: three columns on desktop, two on tablets, one on phones. The first card can take a solid indigo fill to anchor the wall.

  • Participant or family feedback for a program
  • Volunteer voices on a recruitment page
  • Member or customer comments gathered from a survey
Writing the content
  • Keep each Quote to one to three sentences, and mix short and longer ones so the wall looks varied.
  • Put your strongest quote first if Highlight first quote is set to Yes, since that card gets the accent fill and larger text.
  • Use Role for context such as "Parent, Westside branch"; a first name and age works for young participants if families agree.
  • Square photos work best in Photo URL; without one, initials appear.
Accessibility
  • Each card is a figure with the quote in a blockquote and the name and role in a figcaption (WCAG 1.3.1).
  • Cards fill down each column before moving to the next, so visual order matches the source order screen readers follow.
  • Quote marks and initials are aria-hidden; photo alt text is blank by default because the name sits beside it.
Customizing the code
  • Column counts are columns-1 sm:columns-2 lg:columns-3 on the list; break-inside-avoid keeps cards whole.
  • The highlighted card uses bg-indigo-700 with indigo-100 and indigo-300 accents.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Testimonialsarray
  • Highlight first quoteradio