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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | undefined | Optional section heading above the cards. |
| description | string | undefined | Optional supporting text under the heading. |
| tiers | PricingTier[] | none | The plan cards to render (2-3 recommended alongside the testimonial column). |
| testimonial | Testimonial | none | The customer quote block. |
| className | string | none | Extra 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.
More Pricing Blocks
View all →Three Tier Cards
Classic three-column pricing cards with one plan visually highlighted as the recommended choice.
Monthly/Yearly Toggle
Three-tier pricing cards with a real billing-period toggle that switches every displayed price.
Single Plan Highlight
One centered, larger card for a single plan with a big price, full feature list, and a primary CTA.
Comparison Table
A full feature-matrix table comparing 3-4 plan tiers row by row, with a horizontal scroll fallback on mobile.
Enterprise Contact Card
A standard self-serve plan card next to a distinctly-styled Enterprise card with custom-quote messaging.
Tabbed Audience Pricing
Pill tabs switch between separate plan sets for different audiences, e.g. individuals vs. teams.