Testimonial section driven by a ruled client index: clicking a name swaps the panel beside it, which carries the quote, a round portrait with the attribution, and one ruled outcome figure.
Testimonial section driven by a ruled client index. Clicking a name swaps the panel beside it, which carries the quote, a round portrait with the attribution and one ruled outcome figure, so social proof and results share a single compact section.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/testimonial46?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/testimonial46?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/testimonial46.tsx plus the badge7 component it uses for the eyebrows.
The installed file exports testimonial46Demo alongside the block: the exact props behind the preview above. Spread it to get a working switcher in one line.
import { Testimonial46, testimonial46Demo } from "@/components/beste/block/testimonial46";
export default function Page() {
return <Testimonial46 {...testimonial46Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Testimonial46 } from "@/components/beste/block/testimonial46";
export default function Page() {
return (
<Testimonial46
badge={{ label: "Client stories" }}
heading="Pick a name, read what happened."
labels={{ indexTitle: "The clients" }}
quotes={[
{
client: "Hallvard Press",
sector: "Independent publishing",
quote: "We came in asking for a logo and left with a catalogue people finish.",
name: "Marit Hallvard",
role: "Publisher",
image: { src: "/people/marit.jpg", alt: "Portrait of Marit Hallvard" },
result: { title: "Catalogue sales, first season", value: "Up by a third" },
},
]}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Eyebrow label rendered as a Badge7 |
heading | string | – | Section heading above the two columns |
quotes | StoryQuote[] | [] | Each entry is one index row and one panel |
labels | Testimonial46Labels | {} | Fixed strings that are not content: the eyebrow above the index |
className | string | – | Extra classes for the outer <section> |
type StoryQuote = {
client: string;
sector: string;
quote: string;
name: string;
role: string;
image: { src: string; alt: string };
result: { title: string; value: string };
};
type Testimonial46Labels = {
indexTitle?: string;
};useState(0), so the first story renders on the server and the panel is never blank before hydration.<button type="button"> with aria-pressed, and the switch is bound to click, never hover: a pointer crossing the list must not change what you are reading.text-muted-foreground to text-foreground, with no border weight or background change, so nothing shifts by a pixel when the selection moves.size-16 circle with object-cover, which is why any aspect ratio can be passed without distorting the face.result.value is a string, so an outcome can read Halved, 64 stores or Up by a third rather than forcing everything into a percentage.md:grid-cols-[1fr_1.4fr], keeping the index narrow so the quote gets the width it needs to stay at text-2xl md:text-3xl.testimonial42
A testimonial grid with an eyebrow over a hairline rule, a two-column heading, and three bordered quote cards each closing with an author avatar, name, and role.
testimonial45
Three testimonials as ruled columns, each led by a grayscale client logo, followed by a large quote and an attribution block that names the person, the role and the project they hired the studio for.
testimonial43
A testimonial with an eyebrow over a hairline rule, pairing a large light quote and author on the left with an image tile that floats a live star-rating card on the right.
testimonial35
A single dramatic pull-quote with a decorative mark, centered above a rounded avatar, name, and role.