{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-01",
  "type": "registry:block",
  "title": "Simple Subscription Pricing",
  "description": "A three-tier pricing section with a monthly/yearly selector and a visually emphasized recommended plan.",
  "author": "UIBlocks contributors",
  "registryDependencies": [],
  "dependencies": [
    "lucide-react@0.577.0"
  ],
  "files": [
    {
      "path": "licenses/pricing-01/LICENSE.txt",
      "type": "registry:file",
      "target": "@components/uiblocks/pricing-01/LICENSE.txt",
      "content": "UIBlocks original block: Copyright (c) 2026 UIBlocks contributors. Licensed under the MIT License below.\n\nIncludes source from Blocks.so and its bundled primitives.\nSource: https://github.com/ephraimduncan/blocks\nRevision: 3f759d5171c2391253ec4c772e9e5b3db2bc7c7f\n\nMIT License\n\nCopyright (c) 2025 Ephraim Duncan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "content/components/marketing/pricing-01.tsx",
      "type": "registry:component",
      "target": "@components/uiblocks/pricing-01/pricing-01.tsx",
      "content": "\"use client\";\n\nimport { ArrowRight, Check } from \"lucide-react\";\nimport { useState } from \"react\";\n\nexport type PricingPlan = {\n  name: string;\n  description: string;\n  monthlyPrice: number;\n  annualMonthlyPrice: number;\n  features: string[];\n  highlighted?: boolean;\n  actionLabel?: string;\n  actionHref?: string;\n};\n\nexport type Pricing01Props = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  plans?: PricingPlan[];\n  currency?: string;\n};\n\n/** Illustrative plan comparison with a working billing-period toggle. */\nexport default function Pricing01({\n  eyebrow = \"ROOM TO GROW\",\n  title = \"Start small. Keep creating.\",\n  description = \"A simple plan comparison for your next product. All prices below are illustrative.\",\n  currency = \"$\",\n  plans = [\n    {\n      name: \"Personal\",\n      description: \"For the occasional good idea.\",\n      monthlyPrice: 0,\n      annualMonthlyPrice: 0,\n      features: [\n        \"3 projects\",\n        \"Single-file workflow\",\n        \"Standard exports\",\n        \"Local demo workspace\",\n      ],\n      actionLabel: \"Explore the demo\",\n    },\n    {\n      name: \"Creator\",\n      description: \"For a workflow that keeps moving.\",\n      monthlyPrice: 19,\n      annualMonthlyPrice: 15,\n      features: [\n        \"Unlimited projects\",\n        \"Batch file workflows\",\n        \"Reusable presets\",\n        \"Export history\",\n      ],\n      highlighted: true,\n      actionLabel: \"Explore Creator\",\n    },\n    {\n      name: \"Studio\",\n      description: \"For a little more room to make.\",\n      monthlyPrice: 39,\n      annualMonthlyPrice: 32,\n      features: [\n        \"Everything in Creator\",\n        \"Shared project folders\",\n        \"Team-ready layouts\",\n        \"Usage overview\",\n      ],\n      actionLabel: \"Explore Studio\",\n    },\n  ],\n}: Pricing01Props) {\n  const [period, setPeriod] = useState<\"monthly\" | \"yearly\">(\"monthly\");\n  return (\n    <section\n      className=\"w-full scroll-mt-10 border-y border-zinc-200/70 bg-zinc-50/70 py-20 text-zinc-950 md:py-24 dark:border-zinc-800 dark:bg-zinc-900/30 dark:text-white\"\n      id=\"pricing\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 lg:px-8\">\n        <div className=\"flex flex-col items-start justify-between gap-6 sm:flex-row sm:items-end\">\n          <div className=\"max-w-lg\">\n            <p className=\"text-[10px] font-semibold tracking-[0.16em] text-violet-600 dark:text-violet-400\">\n              {eyebrow}\n            </p>\n            <h2 className=\"mt-4 text-balance text-3xl font-semibold tracking-[-0.035em] sm:text-4xl\">\n              {title}\n            </h2>\n            <p className=\"mt-4 text-sm leading-6 text-zinc-500 dark:text-zinc-400\">\n              {description}\n            </p>\n          </div>\n          <div\n            aria-label=\"Billing period\"\n            className=\"inline-flex shrink-0 gap-1 rounded-lg border border-zinc-200 bg-white p-1 text-xs dark:border-zinc-700 dark:bg-zinc-950\"\n            role=\"group\"\n          >\n            {([\"monthly\", \"yearly\"] as const).map((value) => (\n              <button\n                aria-pressed={period === value}\n                className={`rounded-md px-4 py-2 font-medium transition-colors focus-visible:outline-2 focus-visible:outline-violet-500 ${period === value ? \"bg-zinc-950 text-white dark:bg-white dark:text-zinc-950\" : \"text-zinc-500 hover:text-zinc-950 dark:text-zinc-400 dark:hover:text-white\"}`}\n                key={value}\n                onClick={() => setPeriod(value)}\n                type=\"button\"\n              >\n                {value === \"monthly\" ? \"Monthly\" : \"Yearly\"}\n              </button>\n            ))}\n          </div>\n        </div>\n        <div className=\"mt-10 grid gap-4 md:grid-cols-3\">\n          {plans.map((plan) => {\n            const price =\n              period === \"monthly\"\n                ? plan.monthlyPrice\n                : plan.annualMonthlyPrice;\n            return (\n              <article\n                className={`relative flex flex-col rounded-xl border bg-white p-6 lg:p-7 dark:bg-zinc-950 ${plan.highlighted ? \"border-violet-500 ring-1 ring-violet-500/10 dark:border-violet-400\" : \"border-zinc-200 dark:border-zinc-700\"}`}\n                key={plan.name}\n              >\n                <div className=\"flex min-h-6 flex-wrap items-center justify-between gap-2\">\n                  <h3 className=\"text-sm font-semibold\">{plan.name}</h3>\n                  {plan.highlighted && (\n                    <span className=\"rounded-full bg-violet-50 px-2 py-1 text-[9px] font-semibold text-violet-600 dark:bg-violet-500/10 dark:text-violet-400\">\n                      FOR EVERYDAY CREATING\n                    </span>\n                  )}\n                </div>\n                <p className=\"mt-2 min-h-10 text-xs leading-5 text-zinc-500 dark:text-zinc-400\">\n                  {plan.description}\n                </p>\n                <p\n                  aria-live=\"polite\"\n                  className=\"mt-5 flex items-baseline gap-1\"\n                >\n                  <span className=\"text-4xl font-semibold tracking-tight\">\n                    {currency}\n                    {price}\n                  </span>\n                  <span className=\"text-xs text-zinc-400\">/ month</span>\n                </p>\n                <p className=\"mt-2 min-h-5 text-[10px] text-zinc-400\">\n                  {price === 0\n                    ? \"A place to try things out\"\n                    : period === \"yearly\"\n                      ? `${currency}${price * 12} billed yearly`\n                      : \"Billed monthly\"}\n                </p>\n                <a\n                  className={`mt-6 inline-flex min-h-10 items-center justify-center gap-2 rounded-lg border px-3 py-2.5 text-xs font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-violet-500 ${plan.highlighted ? \"border-violet-600 bg-violet-600 text-white hover:bg-violet-700\" : \"border-zinc-200 text-zinc-700 hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-900\"}`}\n                  href={plan.actionHref ?? \"/preview/recipes/tool-workspace\"}\n                >\n                  {plan.actionLabel ?? `Explore ${plan.name}`}\n                  <ArrowRight aria-hidden=\"true\" className=\"size-3.5\" />\n                </a>\n                <ul className=\"mt-7 space-y-3 border-t border-zinc-100 pt-6 dark:border-zinc-800\">\n                  {plan.features.map((feature) => (\n                    <li\n                      className=\"flex items-start gap-2.5 text-xs leading-5 text-zinc-600 dark:text-zinc-400\"\n                      key={feature}\n                    >\n                      <Check\n                        aria-hidden=\"true\"\n                        className=\"mt-0.5 size-3.5 shrink-0 text-violet-500\"\n                      />\n                      {feature}\n                    </li>\n                  ))}\n                </ul>\n              </article>\n            );\n          })}\n        </div>\n        <p\n          className=\"mt-6 scroll-mt-8 text-center text-[11px] leading-5 text-zinc-400\"\n          id=\"pricing-demo\"\n        >\n          This is an interactive UI demo. No subscriptions or payments are\n          created.\n        </p>\n      </div>\n    </section>\n  );\n}\n"
    }
  ],
  "categories": [
    "marketing",
    "marketing",
    "clean-saas"
  ],
  "docs": "Import the default component from @components/uiblocks/pricing-01/pricing-01.tsx. React 19, Tailwind CSS 4, and the standard shadcn CSS theme variables are required. This block is framework-independent React and works in TanStack Start, Vite, and Next.js projects. Connect links or navigation callbacks to your host application. Demo avatars use public image URLs; replace them with your own assets. Demo handlers must be connected to your product. See https://uiblocks.org/marketing/pricing-01 for content guidelines and source attribution.",
  "meta": {
    "kind": "block",
    "version": "0.1.0",
    "source": {
      "name": "UIBlocks",
      "url": "https://uiblocks.org",
      "license": "MIT",
      "author": "UIBlocks contributors",
      "revision": "uiblocks-v0.1.0"
    },
    "license": "MIT",
    "style": "clean-saas",
    "pageType": "marketing",
    "featured": true,
    "tags": [
      "pricing",
      "subscription",
      "plans",
      "billing",
      "价格",
      "定价",
      "套餐",
      "订阅",
      "账单"
    ],
    "contentGuidelines": [
      "Demo prices are examples; define real entitlements and billing periods before launch.",
      "Keep feature lists comparable across the three plans and connect purchase links."
    ],
    "recommendedWith": [
      "features-01",
      "faq-01",
      "usage-panel-01"
    ],
    "entry": "@components/uiblocks/pricing-01/pricing-01.tsx",
    "exportName": "default",
    "frameworkIndependent": true,
    "frameworkDependencies": [],
    "compatibleHosts": [
      "react",
      "vite",
      "tanstack-start",
      "nextjs"
    ],
    "requirements": {
      "react": ">=19",
      "tailwind": ">=4"
    },
    "previewUrl": "https://uiblocks.org/preview/pricing-01"
  }
}
