{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-list",
  "type": "registry:ui",
  "title": "Faq list",
  "description": "An FAQ section built on an accessible accordion. Pass question and answer pairs and each one expands in place, with keyboard support and a readable max width.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/accordion.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/faq-list.tsx",
      "type": "registry:ui",
      "target": "components/ui/faq-list.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport { Accordion, AccordionItem, AccordionTrigger, AccordionPanel } from \"@/components/ui/accordion\"\n\n/** Frequently asked questions as an accordion: one question per row, the answer unfolds beneath it. */\ntype Faq = { q: string; a: string }\n\nconst SAMPLE_ITEMS: Faq[] = [\n  { q: \"How does the free trial work?\", a: \"Every Lumen workspace starts with 14 days of the Growth plan. No card is needed, and you keep your data if you move to Starter afterwards.\" },\n  { q: \"Can I change plans later?\", a: \"Yes. Upgrades apply immediately and are prorated. Downgrades take effect at the end of the current billing period.\" },\n  { q: \"Which currencies can I invoice in?\", a: \"Growth and Scale support 135 currencies with daily exchange rates. Starter invoices in your workspace's base currency.\" },\n  { q: \"Do you offer discounts for annual billing?\", a: \"Annual plans are billed at ten months' price, so you get two months free compared to paying monthly.\" },\n  { q: \"Is my financial data encrypted?\", a: \"All data is encrypted in transit and at rest. Lumen is SOC 2 Type II certified, and audit logs are available on the Scale plan.\" },\n]\n\ntype FaqListProps = {\n  /** Question and answer pairs. Defaults to Lumen billing questions. */\n  items?: Faq[]\n  className?: string\n}\n\nfunction FaqList({ items = SAMPLE_ITEMS, className }: FaqListProps) {\n  return (\n    <Accordion data-slot=\"faq-list\" className={cn(\"max-w-2xl\", className)}>\n      {items.map((item, i) => (\n        <AccordionItem key={item.q} value={`faq-${i}`}>\n          <AccordionTrigger>{item.q}</AccordionTrigger>\n          <AccordionPanel>{item.a}</AccordionPanel>\n        </AccordionItem>\n      ))}\n    </Accordion>\n  )\n}\nexport { FaqList }\nexport type { FaqListProps, Faq }\n"
    }
  ]
}
