{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "summary-card",
  "title": "Summary card",
  "description": "label/value rows, optionally in a Card",
  "dependencies": [
    "cn@^0.4.0"
  ],
  "registryDependencies": [
    "card"
  ],
  "files": [
    {
      "path": "components/kit/key-value-list.tsx",
      "content": "import { cn } from 'cn';\nimport { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';\n\nexport type KeyValueRow = { label: string; value: string; valueClassName?: string };\ntype ListProps = { rows: KeyValueRow[]; className?: string };\n\n/** Label and value rows (order summaries, details). */\nexport function KeyValueList({ rows, className }: ListProps) {\n  return (\n    <dl className={cn('flex flex-col gap-3', className)}>\n      {rows.map((r, i) => (\n        <div key={`${r.label}-${i}`} className=\"flex items-start justify-between gap-4 text-sm\">\n          <dt className=\"text-muted-foreground\">{r.label}</dt>\n          <dd className={cn('text-right font-medium', r.valueClassName)}>{r.value}</dd>\n        </div>\n      ))}\n    </dl>\n  );\n}\n\n/** KeyValueList inside a Card: confirmations, receipts, loan details. */\nexport function SummaryCard({ title, rows, className }: ListProps & { title?: string }) {\n  return (\n    <Card className={cn('w-full gap-4 py-4', className)}>\n      {title ? (\n        <CardHeader className=\"px-4\">\n          <CardTitle className=\"text-base\">{title}</CardTitle>\n        </CardHeader>\n      ) : null}\n      <CardContent className=\"px-4\">\n        <KeyValueList rows={rows} />\n      </CardContent>\n    </Card>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/kit/key-value-list.tsx"
    }
  ],
  "meta": {
    "exports": [
      "KeyValueList",
      "SummaryCard"
    ],
    "api": "<SummaryCard title? rows={[{label,value}]} /> · <KeyValueList rows />"
  },
  "docs": "Needs the kit theme (`@kit/theme`) and a next-themes ThemeProvider (attribute=\"class\") at the root.",
  "categories": [
    "data"
  ],
  "type": "registry:component"
}