Testimonials, grid


Install
npx shadcn add @klarhimmel/testimonials-gridDetailsAbout, usage, props and more
A heading and a grid of quotes, each with a name and role.
Import
Import
- testimonials/grid
- Category
- What customers say, one quote or many. New project? Set it up once: /get-started/installation.
Notes
When to use it
A heading and a grid of up to six quotes in boxed cards, each with a name and role. For many short voices without boxes use testimonials-wall, and for one big story testimonial-quote.
Writing for it
- Quotes hold 300 characters and the cards stretch to equal height, so a mix of lengths is fine. Still, cut each to the single thing the customer said that you could not have written yourself. - There is no photo field. An initials avatar is drawn from the name, so use a full name and not a team label. - Role has 80 characters and sits under the name. Use job title and company in the form 'Head of ops, Northlight' to save a separate field.
Watch out for
The grid is two columns on medium containers and three on wide ones. Five items leave a half-empty last row in both, so use four or six.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the section' | Text, up to 60 characters. |
title | string | 'Say what the quotes show, in one sh…' | Text, up to 120 characters. |
description | string | - | Text, up to 300 characters. Optional; empty is not rendered. |
header | 'start' | 'center' | - | One of 'start', 'center'. Optional; empty is not rendered. |
avatars | boolean | - | Optional; empty is not rendered. |
action | Link | - | Optional; empty is not rendered. |
items | { quote, name, role, source, href }[] | 6 items | List of 1 to 9. Each item: quote, name, role (optional), source (optional), href (optional). |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |