Skip to content
Klarhimmel UI

Testimonials, three columns

Testimonials, three columns previewTestimonials, three columns preview

Install

npx shadcn add https://ui.klarhimmel.com/r/testimonials-three-column.json
DetailsAbout, usage, props and more

Three columns: star-rated quote cards stacked on the left, the label, heading, lead and one action centred in the middle, more quote cards on the right.

Import

Import

import Block from '@/components/klarhimmel/blocks/testimonials-three-column';
Also called
  • testimonials/three-column
About
Three columns: star-rated quote cards stacked on the left, the label, heading, lead and one action centred in the middle, more quote cards on the right. Each card has stars with a rating line, the quote, and the person with initials.
Category
What customers say, one quote or many. New project? Set it up once: /get-started/installation.

Notes

When to use it

Pick it when a few short, star-rated quotes should flank the headline and one action, so the quotes are the first thing read on a wide screen. Pick testimonials-grid for an even grid of quotes under a heading, or testimonials-rating when a real average score is the proof.

Writing for it

- Title up to 120 characters, lead 160; the action label stays short. - One to three quotes per side, each up to 280 characters, with a name up to 60. - Leave the rating line empty unless it is the reviewer's own wording.

Watch out for

Uneven sides leave the centre column floating off a card edge, so give both sides the same count and similar quote length; long quotes make the narrow cards tall.

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 TestimonialsThreeColumn from '@/components/klarhimmel/blocks/testimonials-three-column';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TestimonialsThreeColumn props={{
          "eyebrow": "Section name",
          "title": "Say what the quotes show",
          "description": "Say in one line who is speaking.",
          "action": {
            "label": "Main action",
            "href": "#start"
          },
          "left": [
            {
              "stars": "5",
              "rating": "Rating line",
              "text": "Say what they got.",
              "name": "Name a person"
            },
            {
              "stars": "5",
              "rating": "Rating line",
              "text": "Say what they got.",
              "name": "Name a person"
            }
          ],
          "right": [
            {
              "stars": "5",
              "rating": "Rating line",
              "text": "Say what they got.",
              "name": "Name a person"
            },
            {
              "stars": "5",
              "rating": "Rating line",
              "text": "Say what they got.",
              "name": "Name a person"
            }
          ]
        }} />
      </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'Section name'Text, up to 60 characters.
titlestring'Say what the quotes show'Text, up to 120 characters.
descriptionstring'Say in one line who is speaking.'Text, up to 160 characters.
actionLink{…}See the type.
left{ stars, rating, text, name }[]2 itemsList of 1 to 3. Each item: stars ('1' | '2' | '3' | '4' | '5'), rating, text, name.
right{ stars, rating, text, name }[]2 itemsList of 1 to 3. Each item: stars ('1' | '2' | '3' | '4' | '5'), rating, text, name.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.