{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-section-v6",
  "title": "Pricing Section v6",
  "description": "Three full-width plan cards with an inverted Basic plan, above a striped comparison table that shares the card columns so every value sits under its plan, all wrapped in one outer card.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/pricing-section-v6/page.tsx",
      "content": "import PricingSectionV6 from \"./components/pricing-section-v6\"\n\nexport default function Page() {\n  return <PricingSectionV6 />\n}\n",
      "type": "registry:page",
      "target": "app/pricing-section-v6/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/pricing-section-v6/components/pricing-section-v6.tsx",
      "content": "import PricingCard from \"./pricing-card\"\nimport PricingTable from \"./pricing-table\"\nimport { pricingPlans } from \"../lib/pricing-plans\"\n\nexport default function PricingSectionV6() {\n  return (\n    <section className=\"py-4 md:py-6 lg:py-8\">\n      <div className=\"mx-auto max-w-6xl px-4 sm:px-6 lg:px-8\">\n        <div className=\"mx-auto mb-10 max-w-2xl text-center\">\n          <h2 className=\"text-4xl font-medium tracking-tight text-balance text-foreground md:text-5xl\">\n            Our plans scale with{\" \"}\n            <span className=\"text-muted-foreground\">your business</span>\n          </h2>\n        </div>\n        <div className=\"flex flex-col gap-6 rounded-3xl border border-border bg-card p-3 sm:p-4 md:gap-8 md:p-5\">\n          {/* Stacks on mobile; from md it matches `planGridClassName` so cards sit over their table values. */}\n          <div className=\"flex flex-col gap-3 md:grid md:grid-cols-3 md:gap-x-4\">\n            {pricingPlans.map((plan) => (\n              <PricingCard key={plan.id} plan={plan} />\n            ))}\n          </div>\n          <PricingTable />\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/pricing-section-v6/components/pricing-section-v6.tsx"
    },
    {
      "path": "registry/new-york/blocks/pricing-section-v6/components/pricing-card.tsx",
      "content": "import { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/lib/utils\"\nimport type { PricingPlan } from \"../lib/pricing-plans\"\n\ntype PricingCardProps = {\n  plan: PricingPlan\n}\n\nexport default function PricingCard({ plan }: PricingCardProps) {\n  const inverted = plan.highlighted ?? false\n\n  return (\n    <div\n      className={cn(\n        \"flex min-w-0 flex-col items-center rounded-2xl px-6 pt-8 pb-6 text-center\",\n        inverted ? \"bg-foreground\" : \"bg-muted\"\n      )}\n    >\n      <h3\n        className={cn(\n          \"text-lg font-medium tracking-tight\",\n          inverted ? \"text-background\" : \"text-foreground\"\n        )}\n      >\n        {plan.name}\n      </h3>\n      <p\n        className={cn(\n          \"mt-4 text-4xl font-semibold tracking-tight md:text-5xl\",\n          inverted ? \"text-background\" : \"text-foreground\"\n        )}\n      >\n        {plan.price}\n      </p>\n      <p\n        className={cn(\n          \"mt-2 text-sm\",\n          inverted ? \"text-background/65\" : \"text-muted-foreground\"\n        )}\n      >\n        {plan.priceSuffix}\n      </p>\n      <Button\n        size=\"lg\"\n        className={cn(\n          \"mt-6 w-full max-w-48 rounded-full\",\n          inverted && \"bg-background text-foreground hover:bg-background/90\"\n        )}\n      >\n        {plan.ctaLabel}\n      </Button>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/pricing-section-v6/components/pricing-card.tsx"
    },
    {
      "path": "registry/new-york/blocks/pricing-section-v6/components/pricing-table.tsx",
      "content": "import { cn } from \"@/lib/utils\"\nimport { featureLabelClassName, planGridClassName } from \"../lib/layout\"\nimport { pricingFeatures, pricingPlans } from \"../lib/pricing-plans\"\nimport FeatureValue from \"./feature-value\"\n\nexport default function PricingTable() {\n  return (\n    <div role=\"table\" aria-label=\"Plan comparison\" className=\"flex flex-col\">\n      <div role=\"rowgroup\">\n        {/* Plan names: visible when cards stack on mobile, screen-reader only once they sit above their columns. */}\n        <div role=\"row\" className={cn(planGridClassName, \"pb-3 md:sr-only\")}>\n          <span role=\"columnheader\" className=\"sr-only\">\n            Feature\n          </span>\n          {pricingPlans.map((plan) => (\n            <span\n              key={plan.id}\n              role=\"columnheader\"\n              className=\"text-center text-sm font-medium text-foreground\"\n            >\n              {plan.name}\n            </span>\n          ))}\n        </div>\n      </div>\n      <div role=\"rowgroup\" className=\"flex flex-col\">\n        {pricingFeatures.map((feature, index) => (\n          <div\n            key={feature.label}\n            role=\"row\"\n            className={cn(\n              planGridClassName,\n              \"relative min-h-10 items-center gap-y-1.5 rounded-lg py-2\",\n              index % 2 === 0 && \"bg-muted\"\n            )}\n          >\n            <span\n              role=\"rowheader\"\n              className={cn(\n                \"col-span-3 pl-3 text-xs text-foreground sm:pl-5 sm:text-sm\",\n                featureLabelClassName\n              )}\n            >\n              {feature.label}\n            </span>\n            {pricingPlans.map((plan) => (\n              <span\n                key={plan.id}\n                role=\"cell\"\n                className=\"flex items-center justify-center\"\n              >\n                <FeatureValue value={feature.values[plan.id]} />\n              </span>\n            ))}\n          </div>\n        ))}\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/pricing-section-v6/components/pricing-table.tsx"
    },
    {
      "path": "registry/new-york/blocks/pricing-section-v6/components/feature-value.tsx",
      "content": "import { CheckIcon, XIcon } from \"lucide-react\"\n\nimport type { FeatureValue as FeatureValueType } from \"../lib/pricing-plans\"\n\ntype FeatureValueProps = {\n  value: FeatureValueType\n}\n\nexport default function FeatureValue({ value }: FeatureValueProps) {\n  if (typeof value === \"string\") {\n    return (\n      <span className=\"text-xs font-medium text-foreground sm:text-sm\">\n        {value}\n      </span>\n    )\n  }\n\n  if (value) {\n    return (\n      <span className=\"inline-flex size-4 items-center justify-center rounded-full border border-emerald-600/50 text-emerald-600 dark:border-emerald-400/50 dark:text-emerald-400\">\n        <CheckIcon aria-hidden className=\"size-2.5\" strokeWidth={3} />\n        <span className=\"sr-only\">Included</span>\n      </span>\n    )\n  }\n\n  return (\n    <span className=\"inline-flex size-4 items-center justify-center rounded-full border border-red-500/50 text-red-500 dark:border-red-400/50 dark:text-red-400\">\n      <XIcon aria-hidden className=\"size-2.5\" strokeWidth={3} />\n      <span className=\"sr-only\">Not included</span>\n    </span>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/pricing-section-v6/components/feature-value.tsx"
    },
    {
      "path": "registry/new-york/blocks/pricing-section-v6/lib/pricing-plans.ts",
      "content": "export type PlanId = \"free\" | \"basic\" | \"pro\"\n\nexport type PricingPlan = {\n  id: PlanId\n  name: string\n  price: string\n  priceSuffix: string\n  ctaLabel: string\n  /** Rendered as the dark, inverted card. */\n  highlighted?: boolean\n}\n\n/** `true` renders a check, `false` a muted cross, a string renders as-is. */\nexport type FeatureValue = boolean | string\n\nexport type PricingFeature = {\n  label: string\n  values: Record<PlanId, FeatureValue>\n}\n\nexport const pricingPlans: PricingPlan[] = [\n  {\n    id: \"free\",\n    name: \"Free\",\n    price: \"$0\",\n    priceSuffix: \"Per month\",\n    ctaLabel: \"Get Started\",\n  },\n  {\n    id: \"basic\",\n    name: \"Basic\",\n    price: \"$25\",\n    priceSuffix: \"Per month\",\n    ctaLabel: \"Get Started\",\n    highlighted: true,\n  },\n  {\n    id: \"pro\",\n    name: \"Pro\",\n    price: \"$50\",\n    priceSuffix: \"Per month\",\n    ctaLabel: \"Get Started\",\n  },\n]\n\nexport const pricingFeatures: PricingFeature[] = [\n  {\n    label: \"Team members\",\n    values: { free: \"1\", basic: \"2\", pro: \"3\" },\n  },\n  {\n    label: \"Projects\",\n    values: { free: \"3\", basic: \"10\", pro: \"20\" },\n  },\n  {\n    label: \"Published apps\",\n    values: { free: false, basic: \"2\", pro: \"5\" },\n  },\n  {\n    label: \"Integrations\",\n    values: { free: true, basic: true, pro: true },\n  },\n  {\n    label: \"Custom domains\",\n    values: { free: false, basic: true, pro: true },\n  },\n  {\n    label: \"Enabled workflows\",\n    values: { free: false, basic: \"1\", pro: \"Unlimited\" },\n  },\n  {\n    label: \"Priority support\",\n    values: { free: false, basic: false, pro: true },\n  },\n]\n",
      "type": "registry:lib",
      "target": "app/pricing-section-v6/lib/pricing-plans.ts"
    },
    {
      "path": "registry/new-york/blocks/pricing-section-v6/lib/layout.ts",
      "content": "/**\n * One grid for the plan cards and every comparison row: one column per plan.\n * Sharing it is what keeps each value centered under its card.\n */\nexport const planGridClassName = \"grid grid-cols-3 gap-x-2 sm:gap-x-4\"\n\n/**\n * From md the feature label floats inside the first plan column, capped at the\n * space left of that column's centered value: (row − 2 gaps) / 6 is half a\n * column, minus 1rem so it never touches the value.\n */\nexport const featureLabelClassName =\n  \"md:absolute md:inset-y-0 md:left-0 md:flex md:w-[calc((100%-2rem)/6-1rem)] md:items-center\"\n",
      "type": "registry:lib",
      "target": "app/pricing-section-v6/lib/layout.ts"
    }
  ],
  "type": "registry:block"
}