{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-06",
  "type": "registry:block",
  "description": "A master-detail FAQ with a question list and a large answer panel.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/faqs/faqs-06.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowRight,\n  MessageCircle,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst faqs = [\n  {\n    question: \"Is Designali free to use?\",\n    answer:\n      \"Many blocks, icons and logos on designali.com are free. Designali Pro unlocks the full library of templates, landing pages and premium blocks.\",\n  },\n  {\n    question: \"What do I get with Designali Pro?\",\n    answer:\n      \"Access to 460+ blocks, 240+ landing pages, templates and 2300+ UI examples, all built with Next.js, React, TypeScript and Tailwind CSS.\",\n  },\n  {\n    question: \"Can I bring my existing components?\",\n    answer:\n      \"Yes. Blocks use semantic tokens like background, foreground and primary, so they sit next to your own components and inherit your theme.\",\n  },\n  {\n    question: \"Can I hire Ali Imam for a custom project?\",\n    answer:\n      \"Yes. Designali takes on brand identity, UI/UX design and Next.js development projects. Share your brief at hello@designali.com.\",\n  },\n  {\n    question: \"How does support work?\",\n    answer:\n      \"Write to support@designali.com with a link to the block or template you are using and you will get a reply from the Designali studio.\",\n  },\n]\n\nexport default function Faqs06() {\n  const [selected, setSelected] = useState(0)\n  const current = faqs[selected] ?? faqs[0]!\n\n  return (\n    <section className=\"w-full border-y border-border bg-background\">\n      <div className=\"mx-auto grid max-w-6xl md:grid-cols-[1fr_1.2fr]\">\n        <div className=\"border-border p-6 py-16 md:border-e md:p-12\">\n          <h2 className=\"text-3xl font-semibold tracking-tight md:text-4xl\">\n            Common questions\n          </h2>\n          <ul className=\"mt-10 border-t border-border\">\n            {faqs.map((faq, index) => (\n              <li key={faq.question} className=\"border-b border-border\">\n                <button\n                  type=\"button\"\n                  onClick={() => setSelected(index)}\n                  className={cn(\n                    \"flex w-full items-center justify-between gap-4 py-4 text-start text-sm transition-colors\",\n                    selected === index\n                      ? \"font-medium text-foreground\"\n                      : \"text-muted-foreground hover:text-foreground\"\n                  )}\n                >\n                  {faq.question}\n                  <ArrowRight\n                    className={cn(\n                      \"size-4 shrink-0 transition-transform\",\n                      selected === index ? \"translate-x-0\" : \"-translate-x-1 opacity-0\"\n                    )}\n                  />\n                </button>\n              </li>\n            ))}\n          </ul>\n        </div>\n        <div className=\"flex flex-col justify-between gap-10 bg-muted/40 p-6 py-16 md:p-12\">\n          <div>\n            <span className=\"font-sans text-xs text-muted-foreground\">\n              {String(selected + 1).padStart(2, \"0\")} / {String(faqs.length).padStart(2, \"0\")}\n            </span>\n            <h3 className=\"mt-6 text-2xl font-medium tracking-tight\">\n              {current.question}\n            </h3>\n            <p className=\"mt-4 text-base leading-7 text-muted-foreground\">\n              {current.answer}\n            </p>\n          </div>\n          <div className=\"flex flex-col gap-4 border border-border bg-background p-5 sm:flex-row sm:items-center sm:justify-between\">\n            <div className=\"flex items-center gap-3\">\n              <MessageCircle className=\"size-5 text-muted-foreground\" />\n              <p className=\"text-sm\">Still have a question?</p>\n            </div>\n            <Button size=\"md\" variant=\"outline\">\n              Talk to us\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "faqs"
  ]
}