{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-list",
  "type": "registry:item",
  "title": "Faq List",
  "description": "Frequently asked questions, each opening to its answer, on native <details>: the browser does the keyboard, find-in-page opens the right answer, and with `single` only one is open at a time. `items` is `[{ question, answer }]`.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "section"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/faq-list.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/faq-list.js",
      "content": "// Generated by zubra from faq-list.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\nimport { id } from '@zubra/runtime';\n\nexport const tag = \"faq-list\";\n\nexport default $define(tag, {\n  props: {\n    \"items\": { attribute: \"items\", default: [], required: false },\n    \"heading\": { attribute: \"heading\", default: \"\", required: false },\n    \"single\": { attribute: \"single\", default: false, required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [\"heading\"],\n  events: [],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (faq-list) to ([data-zb-slotted=\\\"faq-list\\\"]) {\\n  :scope { display: block; }\\n  h2 { margin: 0 0 1rem; font-size: 1.5rem; letter-spacing: -0.02em; }\\n  .faq { border-top: 1px solid var(--border, #e4e4e7); }\\n  details { border-bottom: 1px solid var(--border, #e4e4e7); }\\n  summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 0.25rem; font-weight: 600; cursor: pointer; list-style: none; }\\n  summary::-webkit-details-marker { display: none; }\\n  summary::after { content: \\\"+\\\"; margin-left: auto; font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform var(--duration-normal, 200ms); }\\n  details[open] > summary::after { transform: rotate(45deg); }\\n  summary:focus-visible { outline: 2px solid var(--ring, #a1a1aa); outline-offset: 2px; border-radius: calc(var(--radius, 0.625rem) * 0.3); }\\n  .faq-answer { margin: 0; padding: 0 0.25rem 1.1rem; max-width: 65ch; color: color-mix(in oklab, var(--muted-foreground, #71717a) 70%, var(--foreground, #18181b)); }\\n  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; } }\\n}\\n}\\n\",\n  template: \"\\n  <!--[--><!--]-->\\n  <div class=\\\"faq\\\">\\n    <!--[--><!--]-->\\n  </div>\\n\",\n  setup($p, $emit) {\n                                     \n\n  const group = id()\n    return [\n      { path: [0], when: () => $p.heading, blocks: [{ template: \"<h2><!--[--><!--]--></h2>\", parts: () => [{ path: [0, 0], slot: \"heading\", fallback: { template: \"<!---->\", parts: () => [{ path: [0], anchor: () => $t($p.heading) }] } }] }, null] },\n      { path: [1, 0], each: () => $p.items, key: (item, $index) => $r(item).question, block: { template: \"\\n      <details>\\n        <summary></summary>\\n        <p class=\\\"faq-answer\\\"></p>\\n      </details>\\n    \", parts: (item, $index) => [{ path: [0], attribute: \"name\", value: () => ($p.single ? $r(group) : null) }, { path: [0, 0], text: () => $t($r(item).question) }, { path: [0, 1], text: () => $t($r(item).answer) }] } },\n    ];\n  },\n});\n"
    }
  ]
}
