Testimonials, featured and more


Install
npx shadcn add @klarhimmel/testimonials-splitDetailsAbout, usage, props and more
One long quote on a tinted panel with a portrait, beside a stack of two or three short quotes.
Import
Import
- testimonials/split
- About
- One long quote on a tinted panel with a portrait, beside a stack of two or three short quotes. A lead story with supporting voices; unlike the wall, the hierarchy is fixed.
- Category
- What customers say, one quote or many. New project? Set it up once: /get-started/installation.
Notes
When to use it
One long quote on a tinted panel with a portrait, beside a stack of two or three short quotes. A fixed hierarchy of lead story and supporting voices; use testimonials-wall when no voice should lead.
Writing for it
- The featured quote is required and holds 360 characters, and each supporting quote holds 200. Make the featured one the story and the others one-line reactions. - The featured portrait is cropped at 4 to 5 portrait, so supply a photo of the person with space over the head. - The title is required (120 characters) and capped at a narrow width, so say who is talking or what they have in common.
Watch out for
The supporting list needs at least two items and at most three. Only the featured card has a photo field, so the others are plain text cards and will look lighter by design.
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 who the quotes come from' | Text, up to 120 characters. |
featured | { quote, name, role, photo } | {…} | Fields: quote, name, role, photo. |
more | { quote, name, role }[] | 3 items | List of 2 to 3. Each item: quote, name, role. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |