# Customer Testimonial

> A quote from a customer next to the numbers their team reached with you. Use it to pair social proof with hard results on a case study page.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/marketing-stats-customer-testimonial).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-stats-customer-testimonial
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-stats-customer-testimonial-light-cd357795f9773345.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-stats-customer-testimonial.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/marketing-stats-customer-testimonial.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `class-variance-authority`, `lucide-react`, `radix-ui`

## Files

### `components/blocks/marketing/stats/customer-testimonial.tsx`

```tsx
import { Badge } from '@/components/ui/badge';
import { Card, CardContent } from '@/components/ui/card';
import { QuoteIcon } from 'lucide-react';

type CustomerTestimonial = {
  id: string;
  quote: string;
  author: string;
  role: string;
  company: string;
  companyLogo: string;
  metric: {
    value: string;
    label: string;
  };
};

const testimonials: CustomerTestimonial[] = [
  {
    id: '1',
    quote:
      'Implementing this solution helped us improve our conversion rates dramatically while reducing our customer acquisition costs.',
    author: 'Sarah Johnson',
    role: 'VP of Marketing',
    company: 'TechNova',
    companyLogo: '/logos/technova.svg',
    metric: {
      value: '127%',
      label: 'conversion increase',
    },
  },
  {
    id: '2',
    quote:
      "We've seen unprecedented growth in our customer retention metrics since adopting this platform. The ROI has been extraordinary.",
    author: 'Michael Rodriguez',
    role: 'Customer Success Director',
    company: 'Evergreen Solutions',
    companyLogo: '/logos/evergreen.svg',
    metric: {
      value: '3.5x',
      label: 'customer retention',
    },
  },
  {
    id: '3',
    quote:
      'This platform streamlined our entire marketing workflow. What used to take us days now takes just hours, with better results.',
    author: 'Emily Chen',
    role: 'CMO',
    company: 'StratoScale',
    companyLogo: '/logos/stratoscale.svg',
    metric: {
      value: '68%',
      label: 'time saved',
    },
  },
];

const globalStats = [
  { value: '10,000+', label: 'Businesses Trusting Us' },
  { value: '$320M', label: 'Revenue Generated' },
  { value: '94%', label: 'Customer Satisfaction' },
  { value: '150+', label: 'Countries Served' },
];

export default function CustomerTestimonial() {
  return (
    <div className="relative container mx-auto overflow-hidden px-4 py-24 md:px-6 lg:py-32 2xl:max-w-[1400px]">
      {/* Background decorative elements */}
      <div className="bg-primary/10 absolute top-0 right-0 h-96 w-96 translate-x-1/4 -translate-y-1/4 rounded-full opacity-50 blur-3xl" />
      <div className="bg-primary/10 absolute bottom-0 left-0 h-96 w-96 -translate-x-1/4 translate-y-1/4 rounded-full opacity-50 blur-3xl" />

      <div className="relative mx-auto max-w-6xl">
        <div className="mb-16 text-center">
          <Badge className="mb-4">Trusted Worldwide</Badge>
          <h2 className="mb-4 text-3xl font-bold md:text-5xl">
            Real Results from Real Customers
          </h2>
          <p className="text-muted-foreground mx-auto max-w-3xl text-lg">
            Our platform doesn&apos;t just make promises — it delivers
            measurable impact for businesses across industries.
          </p>
        </div>

        {/* Global Stats */}
        <div className="mb-16 grid grid-cols-2 gap-6 md:grid-cols-4 md:gap-8">
          {globalStats.map((stat, i) => (
            <div key={i} className="text-center">
              <h3 className="text-primary mb-2 text-3xl font-bold md:text-4xl">
                {stat.value}
              </h3>
              <p className="text-muted-foreground font-medium">{stat.label}</p>
            </div>
          ))}
        </div>

        {/* Featured testimonials */}
        <div className="grid gap-6 md:grid-cols-3 md:gap-8">
          {testimonials.map((testimonial) => (
            <Card key={testimonial.id} className="overflow-hidden p-0">
              <CardContent className="flex h-full flex-col p-6 md:p-8">
                {/* Company logo placeholder */}
                <div className="bg-muted/40 mb-4 flex h-8 w-auto items-center rounded px-3">
                  <span className="text-sm font-medium">
                    {testimonial.company}
                  </span>
                </div>

                {/* Key metric */}
                <div className="bg-primary/10 mb-6 rounded-lg p-4 text-center">
                  <div className="text-primary mb-1 text-3xl font-bold md:text-4xl">
                    {testimonial.metric.value}
                  </div>
                  <div className="text-primary/80 text-sm font-medium">
                    {testimonial.metric.label}
                  </div>
                </div>

                {/* Quote */}
                <div className="relative mb-6 flex-grow">
                  <QuoteIcon className="text-muted-foreground/20 absolute -top-1 -left-1 h-8 w-8" />
                  <blockquote className="text-muted-foreground relative pl-6">
                    &ldquo;{testimonial.quote}&rdquo;
                  </blockquote>
                </div>

                {/* Author info */}
                <div className="mt-auto">
                  <div className="font-semibold">{testimonial.author}</div>
                  <div className="text-muted-foreground text-sm">
                    {testimonial.role}, {testimonial.company}
                  </div>
                </div>
              </CardContent>
            </Card>
          ))}
        </div>

        {/* CTA */}
        <div className="mt-16 text-center">
          <p className="text-muted-foreground mx-auto mb-6 max-w-2xl">
            Join thousands of forward-thinking businesses already transforming
            their marketing with our platform.
          </p>
          <div className="flex flex-wrap justify-center gap-4">
            <button className="bg-primary text-primary-foreground hover:bg-primary/90 inline-flex h-10 items-center justify-center rounded-md px-8 py-2 text-sm font-medium shadow">
              Start Free Trial
            </button>
            <button className="border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex h-10 items-center justify-center rounded-md border px-8 py-2 text-sm font-medium shadow-sm">
              View Customer Stories
            </button>
          </div>
        </div>
      </div>
    </div>
  );
}
```

### `components/ui/badge.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const badgeVariants = cva(
  "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
        secondary:
          "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
        destructive:
          "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
        outline:
          "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
        ghost:
          "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
        link: "text-primary underline-offset-4 hover:underline",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

function Badge({
  className,
  variant = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"span"> &
  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "span"

  return (
    <Comp
      data-slot="badge"
      data-variant={variant}
      className={cn(badgeVariants({ variant }), className)}
      {...props}
    />
  )
}

export { Badge, badgeVariants }
```

### `components/ui/card.tsx`

```tsx
import * as React from "react"

import { cn } from "@/lib/utils"

function Card({
  className,
  size = "default",
  ...props
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
  return (
    <div
      data-slot="card"
      data-size={size}
      className={cn(
        "group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
        className
      )}
      {...props}
    />
  )
}

function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-header"
      className={cn(
        "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4",
        className
      )}
      {...props}
    />
  )
}

function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-title"
      className={cn(
        "font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
        className
      )}
      {...props}
    />
  )
}

function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-description"
      className={cn("text-sm text-muted-foreground", className)}
      {...props}
    />
  )
}

function CardAction({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-action"
      className={cn(
        "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
        className
      )}
      {...props}
    />
  )
}

function CardContent({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-content"
      className={cn("px-6 group-data-[size=sm]/card:px-4", className)}
      {...props}
    />
  )
}

function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-footer"
      className={cn(
        "flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
        className
      )}
      {...props}
    />
  )
}

export {
  Card,
  CardHeader,
  CardFooter,
  CardTitle,
  CardAction,
  CardDescription,
  CardContent,
}
```
