Skip to content
Klarhimmel UI

Testimonials, cover

Testimonials, cover previewTestimonials, cover preview

Install

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

A full-width cover picture under a dark scrim with a big headline over it, and one white quote card (quote, name and role, one button) overlapping its lower part, to…

Import

Import

import Block from '@/components/klarhimmel/blocks/testimonials-cover';
Also called
  • testimonials/cover
About
A full-width cover picture under a dark scrim with a big headline over it, and one white quote card (quote, name and role, one button) overlapping its lower part, to the right on a wide screen and full width on a phone.
Category
What customers say, one quote or many. New project? Set it up once: /get-started/installation.

Notes

When to use it

A full-width cover picture under a dark scrim with a big headline over it and one white quote card overlapping its lower part. Use it for one strong customer quote and testimonials-grid for several.

Writing for it

- Write the headline as the result in the customer's terms. It runs to two lines on a wide screen. - Choose a cover picture that survives a dark scrim, since the headline is drawn in white over it. - Put the quote in the speaker's words on the card, with their name and role and one button.

Watch out for

The card sits to the right on a wide screen and full width on a phone. A very long quote makes the card cover most of the picture, so keep it to a few sentences.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TestimonialsCover props={{
          "title": "Write one big heading that carries the point",
          "media": {
            "src": "/pictures/photo-florist1.avif",
            "alt": "A flower shop window in a brick building"
          },
          "quote": "Write a real customer quote, in the voice of the speaker, on what changed for them.",
          "name": "Name of the speaker",
          "role": "Their role at their company",
          "action": {
            "label": "Name the next step",
            "href": "#start"
          }
        }} />
      </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
titlestring'Write one big heading that carries …'Text, up to 90 characters.
mediaMedia{…}See the type.
quotestring'Write a real customer quote, in the…'Text, up to 240 characters.
namestring'Name of the speaker'Text, up to 60 characters.
rolestring'Their role at their company'Text, up to 80 characters.
actionLink{…}See the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.