{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-5",
  "title": "Plan Comparison Table",
  "description": "Static pricing comparison table with plans as columns and grouped feature rows, check and dash cells, a highlighted recommended column, and a CTA row.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "table"
  ],
  "files": [
    {
      "path": "registry/blocks/pricing/5/pricing-block.tsx",
      "content": "import { Fragment } from \"react\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\ntype Cell = boolean | string\n\nconst plans = [\n  { name: \"Starter\", price: \"$0\", note: \"Free forever\" },\n  { name: \"Pro\", price: \"$29\", note: \"Per month\", featured: true },\n  { name: \"Enterprise\", price: \"Custom\", note: \"Contact us\" },\n]\n\nconst groups: { label: string; rows: { feature: string; values: Cell[] }[] }[] =\n  [\n    {\n      label: \"Usage\",\n      rows: [\n        { feature: \"Projects\", values: [\"3\", \"Unlimited\", \"Unlimited\"] },\n        { feature: \"Team members\", values: [\"1\", \"10\", \"Unlimited\"] },\n        { feature: \"Storage\", values: [\"5 GB\", \"100 GB\", \"1 TB+\"] },\n      ],\n    },\n    {\n      label: \"Features\",\n      rows: [\n        { feature: \"Custom domains\", values: [false, true, true] },\n        { feature: \"Advanced analytics\", values: [false, true, true] },\n        { feature: \"Audit log\", values: [false, false, true] },\n        { feature: \"SAML single sign-on\", values: [false, false, true] },\n      ],\n    },\n    {\n      label: \"Support\",\n      rows: [\n        { feature: \"Community\", values: [true, true, true] },\n        { feature: \"Priority email\", values: [false, true, true] },\n        { feature: \"Dedicated manager\", values: [false, false, true] },\n      ],\n    },\n  ]\n\nfunction ValueCell({ value }: { value: Cell }) {\n  if (typeof value === \"string\") {\n    return <span className=\"text-sm text-foreground tabular-nums\">{value}</span>\n  }\n  return value ? (\n    <IconPlaceholder\n      lucide=\"Check\"\n      tabler=\"IconCheck\"\n      hugeicons=\"Tick02Icon\"\n      phosphor=\"Check\"\n      remixicon=\"RiCheckLine\"\n      className=\"mx-auto size-4 text-foreground\"\n      aria-label=\"Included\"\n    />\n  ) : (\n    <IconPlaceholder\n      lucide=\"Minus\"\n      tabler=\"IconMinus\"\n      hugeicons=\"MinusSignIcon\"\n      phosphor=\"Subtract\"\n      remixicon=\"RiSubtractLine\"\n      className=\"mx-auto size-4 text-muted-foreground/40\"\n      aria-label=\"Not included\"\n    />\n  )\n}\n\nexport default function PricingBlock() {\n  return (\n    <section className=\"flex w-full items-center justify-center bg-background px-6 py-20 text-foreground\">\n      <div className=\"mx-auto w-full max-w-4xl\">\n        <div className=\"mx-auto max-w-xl text-center\">\n          <span className=\"inline-block rounded-md border border-border px-3 py-1 text-xs font-semibold tracking-widest text-muted-foreground uppercase\">\n            Pricing\n          </span>\n          <h2 className=\"mt-4 font-heading text-3xl font-bold tracking-tight sm:text-4xl\">\n            Compare every plan\n          </h2>\n          <p className=\"mt-4 text-base text-muted-foreground\">\n            Everything in one table, so you can pick the plan that fits without\n            guessing.\n          </p>\n        </div>\n\n        <div className=\"mt-12 overflow-x-auto rounded-lg border border-border\">\n          <Table>\n            <TableHeader>\n              <TableRow className=\"hover:bg-transparent\">\n                <TableHead className=\"w-[38%] align-bottom\">\n                  <span className=\"inline-block pb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase\">\n                    Features\n                  </span>\n                </TableHead>\n                {plans.map((plan) => (\n                  <TableHead\n                    key={plan.name}\n                    className={\n                      plan.featured ? \"bg-muted/40 text-center\" : \"text-center\"\n                    }\n                  >\n                    <div className=\"flex flex-col items-center gap-1 py-3\">\n                      {plan.featured && (\n                        <Badge className=\"mb-1\">Most popular</Badge>\n                      )}\n                      <span className=\"text-sm font-semibold text-foreground\">\n                        {plan.name}\n                      </span>\n                      <span className=\"text-2xl font-bold tracking-tight text-foreground tabular-nums\">\n                        {plan.price}\n                      </span>\n                      <span className=\"text-xs text-muted-foreground\">\n                        {plan.note}\n                      </span>\n                    </div>\n                  </TableHead>\n                ))}\n              </TableRow>\n            </TableHeader>\n            <TableBody>\n              {groups.map((group) => (\n                <Fragment key={group.label}>\n                  <TableRow className=\"bg-muted/30 hover:bg-muted/30\">\n                    <TableCell\n                      colSpan={4}\n                      className=\"py-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase\"\n                    >\n                      {group.label}\n                    </TableCell>\n                  </TableRow>\n                  {group.rows.map((row) => (\n                    <TableRow key={row.feature}>\n                      <TableCell className=\"text-sm text-foreground\">\n                        {row.feature}\n                      </TableCell>\n                      {row.values.map((value, index) => (\n                        <TableCell\n                          key={index}\n                          className={\n                            plans[index].featured\n                              ? \"bg-muted/40 text-center\"\n                              : \"text-center\"\n                          }\n                        >\n                          <ValueCell value={value} />\n                        </TableCell>\n                      ))}\n                    </TableRow>\n                  ))}\n                </Fragment>\n              ))}\n              <TableRow className=\"hover:bg-transparent\">\n                <TableCell />\n                {plans.map((plan) => (\n                  <TableCell\n                    key={plan.name}\n                    className={\n                      plan.featured\n                        ? \"bg-muted/40 py-4 text-center\"\n                        : \"py-4 text-center\"\n                    }\n                  >\n                    <Button\n                      render={<a href=\"#\" />}\n                      nativeButton={false}\n                      variant={plan.featured ? \"default\" : \"outline\"}\n                      size=\"sm\"\n                      className=\"w-full max-w-[10rem] active:scale-[0.97] transition-transform duration-[160ms] ease-[cubic-bezier(0.23,1,0.32,1)]\"\n                    >\n                      {plan.price === \"Custom\"\n                        ? \"Contact sales\"\n                        : \"Get started\"}\n                    </Button>\n                  </TableCell>\n                ))}\n              </TableRow>\n            </TableBody>\n          </Table>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/pricing-5.tsx"
    }
  ],
  "meta": {
    "height": "999px",
    "tier": "free"
  },
  "docs": "Requires a `base-*` style in components.json (the `shadcn init` default). Legacy `new-york`/`radix-*` styles install Radix primitives, which reject the `render` prop this block uses.",
  "categories": [
    "pricing"
  ],
  "type": "registry:block"
}