Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/three-tier-cards.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/pricing/pricing1.tsx instead.
Usage
The file also exports pricing1Demo, 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 { Pricing1, pricing1Demo } from "@/components/blocks/pricing/pricing1"; export default function Page() { return <Pricing1 {...pricing1Demo} />; }
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, left to right. |
| className | string | none | Extra classes for the outer section element. |
Types
type PricingTier = { name: string; description: string; price: string; period: string; features: string[]; cta: { label: string; href?: string }; highlighted?: boolean; badgeLabel?: string; };
Behavior notes
- This is a fully static server component; nothing on the page changes at runtime.
- The highlighted tier (highlighted: true) gets a primary border, subtle shadow, a slight scale-up on large screens, and an optional badgeLabel pill (e.g. "Most popular") floating above the card.
- All CTA buttons are inert placeholders with href="#", no real checkout or navigation wired up.
More Pricing Blocks
View all →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.
Pricing With Testimonial
Pricing cards paired with a single customer quote block for social proof, side by side on large screens.
Tabbed Audience Pricing
Pill tabs switch between separate plan sets for different audiences, e.g. individuals vs. teams.