{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-01",
  "type": "registry:block",
  "title": "Product FAQ",
  "description": "A keyboard-accessible FAQ accordion for product fit, privacy, and billing questions.",
  "author": "UIBlocks contributors",
  "registryDependencies": [],
  "dependencies": [
    "lucide-react@0.577.0"
  ],
  "files": [
    {
      "path": "content/components/marketing/faq-01.tsx",
      "type": "registry:component",
      "target": "@components/uiblocks/faq-01/faq-01.tsx",
      "content": "\"use client\";\n\nimport { ArrowUpRight, Minus, Plus } from \"lucide-react\";\nimport { useId, useState } from \"react\";\n\nexport type Faq01Props = {\n  title?: string;\n  description?: string;\n  items?: { question: string; answer: string }[];\n  actionLabel?: string;\n  actionHref?: string;\n};\n\n/** Single-open FAQ with semantic controls and content-sized answer panels. */\nexport default function Faq01({\n  title = \"A few things you might be wondering.\",\n  description = \"A little clarity before you give it a try.\",\n  actionLabel = \"Try the workspace\",\n  actionHref = \"/preview/recipes/tool-workspace\",\n  items = [\n    {\n      question: \"Is this a real file processing service?\",\n      answer:\n        \"Frame is a fictional product used to demonstrate this UIBlocks page recipe. Its workspace shows local interface interactions; it does not upload, convert, or store your files on a server.\",\n    },\n    {\n      question: \"What happens to files I choose in the demo?\",\n      answer:\n        \"Selected file details stay in your browser session. The demo can create a downloadable SVG demo preview to show the export interaction. It does not convert your selected files. Closing or refreshing the page clears the session.\",\n    },\n    {\n      question: \"Can I use these sections in my own product?\",\n      answer:\n        \"Yes. The UIBlocks-original sections in this recipe use the MIT license. You can install the source, adapt the copy and brand, and connect your own product behavior. Retain the included license notices.\",\n    },\n    {\n      question: \"How do I keep the whole page consistent?\",\n      answer:\n        \"Start with the complete recipe, then change your text, product name, and accent color together. Keep the shared content width, type scale, borders, and section spacing as you adapt the page.\",\n    },\n  ],\n}: Faq01Props) {\n  const [openIndex, setOpenIndex] = useState<number | null>(0);\n  const baseId = useId();\n  return (\n    <section\n      className=\"w-full scroll-mt-10 bg-white py-20 text-zinc-950 md:py-24 dark:bg-zinc-950 dark:text-white\"\n      id=\"faq\"\n    >\n      <div className=\"mx-auto grid max-w-6xl gap-10 px-6 lg:grid-cols-[0.9fr_1.1fr] lg:gap-20 lg:px-8\">\n        <div>\n          <p className=\"text-[10px] font-semibold tracking-[0.16em] text-violet-600 dark:text-violet-400\">\n            GOOD QUESTIONS\n          </p>\n          <h2 className=\"mt-4 max-w-sm text-balance text-3xl font-semibold leading-tight 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          <a\n            className=\"mt-6 inline-flex min-h-10 items-center gap-2 rounded text-sm font-medium text-violet-600 hover:text-violet-700 focus-visible:outline-2 focus-visible:outline-violet-500 dark:text-violet-400\"\n            href={actionHref}\n          >\n            {actionLabel}\n            <ArrowUpRight aria-hidden=\"true\" className=\"size-3.5\" />\n          </a>\n        </div>\n        <div className=\"border-t border-zinc-200 dark:border-zinc-800\">\n          {items.map((item, index) => {\n            const isOpen = openIndex === index;\n            const panelId = `${baseId}-answer-${index}`;\n            const buttonId = `${baseId}-question-${index}`;\n            return (\n              <div\n                className=\"border-b border-zinc-200 dark:border-zinc-800\"\n                key={item.question}\n              >\n                <h3>\n                  <button\n                    aria-controls={panelId}\n                    aria-expanded={isOpen}\n                    className=\"flex w-full items-center justify-between gap-5 py-5 text-left text-sm font-medium leading-6 transition-colors hover:text-violet-600 focus-visible:outline-2 focus-visible:outline-violet-500 dark:hover:text-violet-400\"\n                    id={buttonId}\n                    onClick={() => setOpenIndex(isOpen ? null : index)}\n                    type=\"button\"\n                  >\n                    {item.question}\n                    {isOpen ? (\n                      <Minus\n                        aria-hidden=\"true\"\n                        className=\"size-4 shrink-0 text-zinc-400\"\n                      />\n                    ) : (\n                      <Plus\n                        aria-hidden=\"true\"\n                        className=\"size-4 shrink-0 text-zinc-400\"\n                      />\n                    )}\n                  </button>\n                </h3>\n                <div\n                  aria-labelledby={buttonId}\n                  hidden={!isOpen}\n                  id={panelId}\n                  role=\"region\"\n                >\n                  <p className=\"pb-6 pr-6 text-sm leading-7 text-zinc-500 dark:text-zinc-400\">\n                    {item.answer}\n                  </p>\n                </div>\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    },
    {
      "path": "licenses/faq-01/LICENSE.txt",
      "type": "registry:file",
      "target": "@components/uiblocks/faq-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"
    }
  ],
  "categories": [
    "marketing",
    "marketing",
    "clean-saas"
  ],
  "docs": "Import the default component from @components/uiblocks/faq-01/faq-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/faq-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": [
      "faq",
      "accordion",
      "questions",
      "support",
      "常见问题",
      "问答",
      "折叠",
      "帮助"
    ],
    "contentGuidelines": [
      "Write five or fewer common questions with direct, short answers.",
      "Replace demo service and privacy claims with statements that match your product."
    ],
    "recommendedWith": [
      "pricing-01",
      "footer-01"
    ],
    "entry": "@components/uiblocks/faq-01/faq-01.tsx",
    "exportName": "default",
    "frameworkIndependent": true,
    "frameworkDependencies": [],
    "compatibleHosts": [
      "react",
      "vite",
      "tanstack-start",
      "nextjs"
    ],
    "requirements": {
      "react": ">=19",
      "tailwind": ">=4"
    },
    "previewUrl": "https://uiblocks.org/preview/faq-01"
  }
}
