Staaarter

Three Tier Cards

Classic three-column pricing cards with one plan visually highlighted as the recommended choice. Each card shows a price, billing period, feature checklist, and a call-to-action button.

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 dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/three-tier-cards.json

Prefer 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

PropTypeDefaultDescription
headingstringundefinedOptional section heading above the cards.
descriptionstringundefinedOptional supporting text under the heading.
tiersPricingTier[]noneThe plan cards to render, left to right.
classNamestringnoneExtra 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.