Client Index Quote Switcher

(Client stories)

Pick a name, read what happened.

(The clients)
We came in asking for a logo. They came back with the reason our catalogue had stopped selling, and then fixed that instead.
Stacked print publications on a table

Marit Hallvard

Publisher, Hallvard Press

Catalogue sales, first season

Up by a third

About this block

Client Index Quote SwitcherPRO

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.

Testimonial46: Client Index Quote Switcher

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.

Upgrade Now

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/testimonial46?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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" },
        },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow label rendered as a Badge7
headingstringSection heading above the two columns
quotesStoryQuote[][]Each entry is one index row and one panel
labelsTestimonial46Labels{}Fixed strings that are not content: the eyebrow above the index
classNamestringExtra classes for the outer <section>
ts
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;
};

Behavior notes

  • The active index lives in useState(0), so the first story renders on the server and the panel is never blank before hydration.
  • Index rows are <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.
  • The active row is signalled by text colour alone, from text-muted-foreground to text-foreground, with no border weight or background change, so nothing shifts by a pixel when the selection moves.
  • The portrait is a 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.
  • The two columns are 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.

More Testimonial blocks

View all Testimonial
PRO

testimonial42

Three Quote Grid

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.

PRO

testimonial35

Oversized Pull-Quote Testimonial

A single dramatic pull-quote with a decorative mark, centered above a rounded avatar, name, and role.

PRO

testimonial45

Client Quote Ledger

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.

PRO

testimonial43

Quote With Rating

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.

PRO

testimonial31

Stats With Testimonial Gallery

Centered header above a stats rail beside an expanding portrait gallery — hovering a person widens their frame and reveals their quote while the others contract.

PRO

testimonial11

Split Image Testimonial

Two-column layout with large image, star rating, and bordered author section. Perfect for featuring executive testimonials or detailed case study quotes.