{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-rows",
  "type": "registry:block",
  "title": "FAQ, question and answer rows",
  "description": "Every answer open, set as a table of rows: the question is a heading on the left, the answer beside it on the right, hairlines between. Nothing to click, so it prints and scans well; stacks on narrow containers.",
  "categories": [
    "faq"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json"
  ],
  "files": [
    {
      "path": "src/blocks/faq-rows/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/faq-rows/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, req, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  description: t(300),\n  items: z.array(z.object({ question: req(120), answer: t(500) })).min(2).max(8),\n});\n\nexport const spec = defineSpec({\n  type: 'faq-rows',\n  aliases: ['faq/rows'],\n  name: 'FAQ, question and answer rows',\n  category: 'faq',\n  role: 'body',\n  description: 'Every answer open, set as a table of rows: the question is a heading on the left, the answer beside it on the right, hairlines between. Nothing to click, so it prints and scans well; stacks on narrow containers.',\n  schema,\n  defaults: {\n    eyebrow: 'Section name',\n    title: 'Say what the answers cover',\n    description: 'Say what you promise and what you ask.',\n    items: [\n      { question: 'Ask a common question', answer: 'Answer in one or two plain sentences, with the key fact first, then what to do or where to go next.' },\n      { question: 'Ask a question customers have', answer: 'Answer in one or two plain sentences, with the key fact first, then what to do or where to go next.' },\n      { question: 'Ask a question customers have', answer: 'Answer in one or two plain sentences, with the key fact first, then what to do or where to go next.' },\n      { question: 'Ask a question customers have', answer: 'Answer in one or two plain sentences, with the key fact first, then what to do or where to go next.' },\n      { question: 'Ask a common question', answer: 'Answer in one or two plain sentences, with the key fact first, then what to do or where to go next.' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/faq-rows/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/faq-rows/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Container, Opt, Section } from '../_shared/kit';\nimport { Heading, useHeadingId } from '../_shared/c-proof-kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nfunction FaqRows({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n        <dl className=\"mt-12 divide-y divide-kh-line border-y border-kh-line\">\n          {props.items.map((item, i) => (\n            <div key={i} className=\"grid gap-3 py-7 @3xl:grid-cols-[1fr_2fr] @3xl:gap-12\">\n              <dt>\n                <Text path={['items', i, 'question']} value={item.question} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n              </dt>\n              <dd>\n                <Opt path={['items', i, 'answer']} value={item.answer} multiline className=\"max-w-kh-lead text-kh-body text-kh-muted\" placeholder=\"Answer\" />\n              </dd>\n            </div>\n          ))}\n        </dl>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(FaqRows);\n"
    }
  ]
}
