{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "request-form",
  "title": "Request answers list",
  "description": "A read-only definition list of a request's answers.",
  "files": [
    {
      "path": "request/request-form.tsx",
      "content": "import type { ReactNode } from \"react\";\n\n/**\n * One label-and-value pair, styled as a description-list entry. The smallest\n * shared piece between a request's read-only detail and its editable form,\n * so both present an answer the same way.\n */\nexport function Definition({\n  label,\n  children,\n}: {\n  label: string;\n  children: ReactNode;\n}) {\n  return (\n    <div className=\"definition\">\n      <dt>{label}</dt>\n      <dd>{children}</dd>\n    </div>\n  );\n}\n\nexport interface AnswerItem {\n  key: string;\n  label: string;\n  value: ReactNode;\n  /** Extra content under the value, such as a prefill badge or a change-answer control. */\n  note?: ReactNode;\n}\n\n/**\n * The fields a request asked for, read as a description list. Whether the\n * list appears at all when it would be empty is the caller's own choice, so\n * this always renders the `<dl>`, even around zero items.\n */\nexport function AnswerList({ items }: { items: AnswerItem[] }) {\n  return (\n    <dl className=\"facts\">\n      {items.map((item) => (\n        <Definition key={item.key} label={item.label}>\n          {item.value}\n          {item.note}\n        </Definition>\n      ))}\n    </dl>\n  );\n}\n",
      "type": "registry:block",
      "target": "@components/request/request-form.tsx"
    }
  ],
  "type": "registry:block"
}