shadcn.io is not affiliated with official shadcn/ui
Left-Heavy Single Testimonial Hero Block for React
A split hero for a release management tool: copy and two calls to action beside one customer quote in a raised card in a card, with the customer's name, role and a before and after of their result.
Installation
Overview
A split hero anchored by a single customer quote, for React with Base UI. On two equal columns between solid rails, the first holds an announcement link, a medium-weight headline, a subtitle, a ShineButton as the one primary action and an outline Button, both links. The second sits behind a hairline divider and holds the quote in a card in a card: a tinted shell inside a hairline frame with + marks on its corners, and inside it a raised panel with an opening quote mark, the quote at display size, the customer's Avatar with initials, name, role and company, and a footer line that shows the result, such as a release cycle from 14 days to 2. The copy fades up once on load and the card slides in from the side with CSS transitions; nothing moves for visitors who ask for reduced motion. Made for B2B SaaS landing pages with one flagship customer win, launches with a strong quote, and any page where one voice says more than a grid of them.
FAQ
How do I change the quote and the customer?
Edit the TESTIMONIAL object at the top of the file: the quote, the customer's name, role and company, the initials shown in the avatar, and the result line under the quote (metric, before and after). The customer and company in the block are fictional, so use a real quote and a result you have permission to publish, word for word. Two to three sentences read best: a longer quote makes the card taller than the copy beside it.
How do I add the customer's photo?
Add an AvatarImage with the photo's src inside the Avatar, before the AvatarFallback, and set its alt to an empty string: the name is written beside it, so a screen reader would only hear it twice. The initials stay as the fallback and show until the photo loads, or if it fails. A square photo of at least 64px looks sharp at the avatar's size.
How do I link the quote to the full case study?
The announcement pill and the "View the case study" button already point at #: give them your case study's URL. To make the card itself a way in, add a link under the attribution ("Read Fernway's story") rather than wrapping the whole card in one, so the quote stays easy to select and the link's name stays short.
Is the testimonial accessible?
Yes. The headline is the page's one h1, and the card sits in an aside named "Customer testimonial". The quote is a figure with a blockquote and a figcaption for the attribution, so assistive technology reads who said it. The result line is a description list, and its "from" and "to" are read aloud, since the arrow and strike-through are visual only. The large quote mark is decorative, and it mirrors in right-to-left layouts along with the rest of the block.
When should I use one testimonial instead of a carousel?
Use one anchored quote when you have a single exceptional customer story, with a concrete result ("two weeks to two days") from someone your buyers recognise. It reads in seconds and nothing moves. A rotating carousel shows breadth, but most visitors see only its first slide, and it needs pause controls; the Rotating Testimonials hero has them.
How does the layout change on smaller screens?
Below the lg breakpoint the grid becomes one column: the copy comes first, with both calls to action on the first screen, and the card follows at full width behind a rule with + marks. The headline wraps, balanced, at text-4xl, the calls to action wrap when the row runs out of room, and the quote steps down from text-2xl to text-xl. Nothing scrolls sideways down to 320px.
Related
- Pro
Split Layout Testimonial Card Hero
TestimonialsA split hero for month-end close software: the pitch, a Shine Button and an outline button beside a customer's five-star testimonial in a card in a card, with the two results it names.
- “Pro
Split Quote Panel Hero
TestimonialsA reverse split hero that opens with a customer quote: a tinted panel on the start side in three ruled bands (quote, author, two results), and the headline and a Shine Button at the end.
- ““““Pro
Left-Heavy Press Strip Hero
TestimonialsA compact hero for a code review tool: copy and two calls to action, then a band across the column of four press quotes in cells that share their dividers, a row to swipe on a phone.
- “Pro
Featured Testimonial Hero
TestimonialsA compact start-aligned hero with a headline, a Shine Button and an outline action over a closing band that holds one customer's quote, large, beside their rating, name, role and the number it is about.
- “Pro
Split Layout Quote Metrics Hero
TestimonialsA compact hero with a headline and two actions beside a customer's pull quote, over a ruled band of before-and-after metrics with their improvements.
- “Pro
Testimonials Rotating Hero
TestimonialsA reverse split hero with a card that shows one customer quote at a time in a hairline frame, a pause button and a dot per quote, beside an announcement pill, a headline, a Shine Button and an outline action.