Testimonial highlight
One large, centered quote for a single strong testimonial.
Preview
The quote's words brighten one after another as it scrolls into view. Screen readers hear it as one sentence. With reduced motion turned on, it renders the plain layout.
“We replaced a week of landing-page work with an afternoon.”
We replaced a week of landing-page work with an afternoon.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { TestimonialHighlight } from "@/components/custom/testimonial-highlight";
<TestimonialHighlight
quote="We replaced a week of landing-page work with an afternoon."
author="Maya R."
role="Founder"
company="Sample Co"
/>import { TestimonialHighlightMotion } from "@/components/custom/testimonial-highlight/testimonial-highlight-motion";
<TestimonialHighlightMotion quote="…" author="Maya R." />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| quote* (required) | string | – | The quote, without quotation marks. |
| author* (required) | string | – | Who said it. |
| role | string | – | Author's role. |
| company | string | – | Author's company. |
| avatar | string | – | Image URL; initials otherwise. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| quote* (required) | string | – | The quote, without quotation marks. |
| author* (required) | string | – | Who said it. |
| role | string | – | Author's role. |
| company | string | – | Author's company. |
| avatar | string | – | Image URL; initials otherwise. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- A figure with blockquote and figcaption, so the source is tied to the quote.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.