Testimonial, quote


Install
npx shadcn add @klarhimmel/testimonial-quoteDetailsAbout, usage, props and more
One large pull quote with a name, a role, a company and a portrait; a quote alone (a press line) shows without them.
Import
Import
- testimonials/quote
- Category
- What customers say, one quote or many. New project? Set it up once: /get-started/installation.
Notes
When to use it
One large centred quote with a round portrait, name, role and company. Use it as a single moment of proof; testimonials-grid fits several voices and testimonials-split a lead voice with supporting ones.
Writing for it
- The quote holds 400 characters and is set at lead size or larger. Cut it to the one sentence that carries a claim. - Name is the only part of the caption used as the block's label, so write the full name, not a first name. - Add a role (80 characters) that tells the reader why the person knows, and a company (60 characters) which is drawn after a slash and left out when empty.
Watch out for
The portrait is drawn in a 64px circle from the photo field. With no src the circle is an empty frame, so either add a real picture or check how the block looks without one before you publish.
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 |
|---|---|---|---|
quote | string | 'Quote a customer, in their words, o…' | Text, up to 400 characters. |
name | string | 'Name a person' | Text, up to 60 characters. |
role | string | 'Their job title' | Text, up to 80 characters. |
company | string | 'Their company' | Text, up to 60 characters. |
photo | Media | {…} | See the type. |
title | string | - | Text, up to 120 characters. Optional; empty is not rendered. |
card | boolean | - | Optional; empty is not rendered. |
action | Link | - | Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |