# Pricing: three tiers with featured plan

> Three plan panels in one row with equal heights and aligned buttons. The middle plan has a stronger border and a badge.

- Kind: block · Category: Pricing · Interactivity: none
- Install: `npx shadcn@latest add @haze/pricing-three-tier`
- File: `src/components/haze/blocks/pricing-three-tier.astro`
- npm dependencies: @lucide/astro
- Registry dependencies: @haze/badge, @haze/button, @haze/utils
- Docs page: https://hazeui.com/blocks/pricing-three-tier

## Use when
- Self-serve SaaS with a free, a paid and a sales-led plan
- You want to steer buyers toward one recommended plan

## Avoid when
- Buyers need to compare dozens of features line by line; a comparison table works better
- You offer monthly and yearly billing; add a billing toggle variant

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| title | `string` | demo heading | no | Section heading (h2). |
| description | `string` | demo copy | no | Intro under the heading. |
| plans | `Plan[]` | Free / Team / Enterprise | no | Plan cards: name, price, period, description, features, ctaLabel, ctaHref, featured. |
| featuredLabel | `string` | "Most popular" | no | Badge text on the featured plan. |

## Accessibility
- Plans are a list of h3 cards; the featured plan is marked by a text badge as well as the stronger border, so it does not rely on color.
- Each CTA has its own visible label (Start free, Start 14-day trial, Contact sales), so links stay distinguishable out of context.

## Agent prompts

### Install and use

Install the Haze UI block "Pricing: three tiers with featured plan" with `npx shadcn@latest add @haze/pricing-three-tier`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "https://hazeui.com/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import PricingThreeTier from "@/components/haze/blocks/pricing-three-tier.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: https://hazeui.com/blocks/pricing-three-tier.md

### Customize with real content

Adapt the Haze pricing-three-tier block for our product. Replace the demo values of these props with our real content: title, description, plans, featuredLabel. Keep the layout, the heading level rules and these accessibility details: Plans are a list of h3 cards; the featured plan is marked by a text badge as well as the stronger border, so it does not rely on color. Each CTA has its own visible label (Start free, Start 14-day trial, Contact sales), so links stay distinguishable out of context. Do not add raw color classes; use the Haze tokens.

### Choose the right block

Before using pricing-three-tier, check it fits: use it when self-serve saas with a free, a paid and a sales-led plan; you want to steer buyers toward one recommended plan. Avoid it when buyers need to compare dozens of features line by line; a comparison table works better; you offer monthly and yearly billing; add a billing toggle variant.

## Example requests that should lead here
- Add a three tier pricing section with the middle plan highlighted as most popular
- Pricing cards for Free, Team and Enterprise with feature checklists

## Source

```astro
---
import { Check } from "@lucide/astro";
import { cn } from "../../../lib/haze/utils";
import Badge from "../ui/badge.astro";
import Button from "../ui/button.astro";

interface Plan {
  name: string;
  price: string;
  period?: string;
  description: string;
  features: string[];
  ctaLabel: string;
  ctaHref: string;
  featured?: boolean;
}

interface Props {
  title?: string;
  description?: string;
  plans?: Plan[];
  featuredLabel?: string;
}

const {
  title = "Simple pricing that scales with your team",
  description = "Start free. Upgrade when you need more seats, automation and control.",
  featuredLabel = "Most popular",
  plans = [
    { name: "Free", price: "$0", period: "forever", description: "For individuals and small side projects.", features: ["Up to 3 members", "Unlimited issues", "2 active projects", "Community support"], ctaLabel: "Start free", ctaHref: "#free" },
    { name: "Team", price: "$12", period: "per member / month", description: "For growing teams that ship every week.", features: ["Unlimited members", "Unlimited projects", "Automations and cycles", "Git and Slack integrations", "Priority support"], ctaLabel: "Start 14-day trial", ctaHref: "#team", featured: true },
    { name: "Enterprise", price: "Custom", description: "For organisations with security and scale needs.", features: ["Everything in Team", "SSO and SCIM", "Audit log and data export", "Dedicated success manager"], ctaLabel: "Contact sales", ctaHref: "#sales" },
  ],
} = Astro.props;
---

<section aria-labelledby="pricing-three-tier-title" class="bg-background px-6 py-20 sm:py-24">
  <div class="mx-auto max-w-6xl">
    <div class="mx-auto max-w-2xl text-center">
      <h2 id="pricing-three-tier-title" class="text-3xl/9 font-semibold tracking-tight text-balance text-foreground sm:text-4xl/11">{title}</h2>
      <p class="mt-4 text-base/7 text-pretty text-muted-foreground">{description}</p>
    </div>
    <ul class="mt-12 grid gap-4 lg:grid-cols-3 lg:gap-y-0">
      {
        plans.map((plan) => (
          <li
            class={cn(
              "flex flex-col rounded-2xl border bg-card p-6 lg:row-span-5 lg:grid lg:grid-rows-subgrid",
              plan.featured ? "border-frame-hover" : "border-frame",
            )}
          >
            <div class="flex items-center justify-between gap-2">
              <h3 class="text-[0.9375rem]/6 font-semibold tracking-tight text-foreground">{plan.name}</h3>
              {plan.featured && <Badge variant="brand">{featuredLabel}</Badge>}
            </div>
            <p class="mt-2 text-sm/6 text-muted-foreground">{plan.description}</p>
            <p class="mt-6 flex items-baseline gap-2">
              <span class="text-4xl/10 font-semibold tracking-tight text-foreground tabular-nums">{plan.price}</span>
              {plan.period && <span class="text-sm/6 text-muted-foreground">{plan.period}</span>}
            </p>
            <Button href={plan.ctaHref} variant={plan.featured ? "primary" : "outline"} class="mt-6 w-full">
              {plan.ctaLabel}
            </Button>
            <ul class="mt-6 flex flex-col gap-3 border-t border-border pt-6 text-sm/6">
              {plan.features.map((feature) => (
                <li class="flex items-start gap-2 text-muted-foreground">
                  <Check class={cn("mt-1 size-4 shrink-0", plan.featured ? "text-foreground" : "text-muted-foreground")} aria-hidden="true" />
                  {feature}
                </li>
              ))}
            </ul>
          </li>
        ))
      }
    </ul>
  </div>
</section>
```
