Page sections / Comparison tables

Plan Comparison Check Table

Grouped rows with an icon-led section title and subtitle, rows separated by generous 53px spacing, label left and centered check icons for each of three plan columns in muted gray.

Rebuilt from vercel.com/pricing in the Monochrome Precision style.

npx shadcn@latest add https://justyoink.it/r/monochrome-precision/blocks/feature-comparison-matrix.json

Looks exactly like vercel.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Pass `title`, `plans` (three column names, shown to screen readers) and `rows` ({label, href?}). Rows with an href underline on hover.

components/feature-comparison-matrix.tsx
export default function PlanComparisonCheckTable({ title = "Edge Network", plans = ["Starter", "Team", "Enterprise"], rows = [{ label: "Global edge locations" }, { label: "Regional compute zones", href: "#" }, { label: "Smart request routing" }, { label: "Managed certificates" }, { label: "Transport encryption" }, { label: "Traffic load balancing", href: "#" }, { label: "Private backbone links" }, { label: "Automatic zone failover" }] }: { title?: string; plans?: string[]; rows?: { label: string; href?: string }[] }) {
  const Check = () => (
    <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg>
  );
  return (
    <section className="bg-canvas px-4 py-6 sm:px-7 font-sans">
      <table className="w-full border-collapse text-left">
        <caption className="sr-only">{title} plan comparison</caption>
        <thead>
          <tr>
            <th scope="col" className="pb-6 text-ui font-medium text-ink">
              <span className="inline-flex items-center gap-2">
                <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="1.8" aria-hidden="true"><circle cx="12" cy="12" r="9" /><path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18" /></svg>
                {title}
              </span>
            </th>
            {plans.map((p) => (
              <th key={p} scope="col" className="pb-6 text-center text-caption font-normal text-tertiary"><span className="sr-only">{p}</span></th>
            ))}
          </tr>
        </thead>
        <tbody>
          {rows.map((r) => (
            <tr key={r.label} className="h-[53px]">
              <th scope="row" className="text-ui font-normal text-secondary">
                {r.href ? (
                  <a href={r.href} className="cursor-pointer no-underline hover:underline focus-visible:underline focus-visible:outline-none">{r.label}</a>
                ) : r.label}
              </th>
              {plans.map((p) => (
                <td key={p} className="text-center text-tertiary">
                  <span className="inline-flex" role="img" aria-label={`Included in ${p}`}><Check /></span>
                </td>
              ))}
            </tr>
          ))}
        </tbody>
      </table>
    </section>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Monochrome Precision

The whole style →

Ink and Ghost Button Pair

Buttons

Dashed Orbit Integration Ring

Animated graphics

Customer Story Index List

Lists

Centered Quote with Meta Row

Testimonials

Hairline Navigation Bar

Headers & nav bars

Floating Triangle Hero with Logo Strip

Heroes