Skip to content
Klarhimmel UI

Testimonials, wall

Testimonials, wall previewTestimonials, wall preview

Install

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

An editorial wall of short quotes in balanced columns: plain quotes under a hairline rule, one or two featured on a tinted card. No card boxes, unlike the grid.

Import

Import

import Block from '@/components/klarhimmel/blocks/testimonials-wall';
Also called
  • testimonials/wall
About
An editorial wall of short quotes in balanced columns: plain quotes under a hairline rule, one or two featured on a tinted card. No card boxes, unlike the grid. Use when you have many small voices rather than one big story.
Category
What customers say, one quote or many. New project? Set it up once: /get-started/installation.

Notes

When to use it

An editorial wall of four to nine short quotes in balanced columns, with one or two set on a tinted card. Use it when there are many small voices; testimonials-grid boxes every quote, and testimonials-split gives one story the lead.

Writing for it

- Set emphasis to 'featured' on one or two items only. The featured quote is drawn larger on a tinted card and loses its force if there are many. - Quotes hold 320 characters. Since the columns balance by height, a few very short quotes next to long ones make the wall look intentional. - A photo is optional and replaces the initials with a 40px round image. Give its src and keep the alt empty, as the name is printed beside it.

Watch out for

The link under the wall is drawn only when it has a href, and the button itself disappears when its label is empty. The schema allows either one alone, so fill both or the link silently does not show.

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 TestimonialsWall from '@/components/klarhimmel/blocks/testimonials-wall';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TestimonialsWall props={{
          "eyebrow": "Name the section",
          "title": "Say what the quotes show in a line",
          "items": [
            {
              "emphasis": "featured",
              "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"
            },
            {
              "emphasis": "normal",
              "quote": "Quote a customer, in their words, on the result they got.",
              "name": "Name a person",
              "role": "Their role and their company"
            },
            {
              "emphasis": "normal",
              "quote": "Quote a customer, in their words, on the result they got, what changed for them and why they would say it again.",
              "name": "Name a person",
              "role": "Their role and their 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 a line'Text, up to 120 characters.
items{ emphasis, quote, name, role, photo }[]6 itemsList of 4 to 9. Each item: emphasis ('normal' | 'featured'), quote, name, role, photo (optional).
linkLink-Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.