Staaarter

Pricing With Testimonial

Pricing cards paired with a single customer quote block for social proof: a quote, the customer's name, and their role/company, shown side by side with the plan cards on large screens and stacked on mobile.

By Staaarter Team
Pricing
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge, avatar, avatar-initials dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/pricing-with-testimonial.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/pricing/pricing6.tsx instead.

Usage

The file also exports pricing6Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Pricing6, pricing6Demo } from "@/components/blocks/pricing/pricing6";

export default function Page() {
  return <Pricing6 {...pricing6Demo} />;
}

Props

PropTypeDefaultDescription
headingstringundefinedOptional section heading above the cards.
descriptionstringundefinedOptional supporting text under the heading.
tiersPricingTier[]noneThe plan cards to render (2-3 recommended alongside the testimonial column).
testimonialTestimonialnoneThe customer quote block.
classNamestringnoneExtra classes for the outer section element.

Types

type PricingTier = {
  name: string;
  price: string;
  period: string;
  features: string[];
  cta: { label: string; href?: string };
  highlighted?: boolean;
  badgeLabel?: string;
};

type Testimonial = {
  quote: string;
  name: string;
  role: string;
  avatarSrc?: string;
};

Behavior notes

  • This is a fully static server component; nothing on the page changes at runtime.
  • The testimonial column sits in a narrower fixed-width grid track next to the pricing cards on large screens, and stacks below them on small screens.
  • If testimonial.avatarSrc is omitted (or fails to load), the avatar falls back to the customer's initials, computed from their name.
  • All CTA buttons are inert placeholders with href="#", no real checkout or navigation wired up.