Skip to content
Klarhimmel UI

Testimonials, grid

Testimonials, grid previewTestimonials, grid preview

Install

npx shadcn add @klarhimmel/testimonials-grid
DetailsAbout, usage, props and more

A heading and a grid of quotes, each with a name and role.

Import

Import

import Block from '@/components/klarhimmel/blocks/testimonials-grid';
Also called
  • 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.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import TestimonialsGrid from '@/components/klarhimmel/blocks/testimonials-grid';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TestimonialsGrid props={{
          "eyebrow": "Name the section",
          "title": "Say what the quotes show, in one short line",
          "items": [
            {
              "quote": "Quote a customer, in their words, on the result they got and what it changed for them afterwards.",
              "name": "Name a person",
              "role": "Their role and their company"
            },
            {
              "quote": "Quote a customer, in their words, on the result they got and what it changed for them afterwards.",
              "name": "Name a person",
              "role": "Their role and their company"
            },
            {
              "quote": "Quote a customer, in their words, on the result they got and what it changed for them afterwards.",
              "name": "Name a person",
              "role": "Their role and company"
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}

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.

PropTypeDefaultDescription
eyebrowstring'Name the section'Text, up to 60 characters.
titlestring'Say what the quotes show, in one sh…'Text, up to 120 characters.
descriptionstring-Text, up to 300 characters. Optional; empty is not rendered.
header'start' | 'center'-One of 'start', 'center'. Optional; empty is not rendered.
avatarsboolean-Optional; empty is not rendered.
actionLink-Optional; empty is not rendered.
items{ quote, name, role, source, href }[]6 itemsList 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.