{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "detail-list",
  "type": "registry:component",
  "title": "Detail list",
  "description": "Readable label–value pairs for profiles, invoices, and project details.",
  "categories": [
    "tables-&-lists"
  ],
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/registry/overtrue/detail-list.tsx",
      "type": "registry:component",
      "target": "components/overtrue/detail-list.tsx",
      "content": "import type { ComponentProps, ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface DetailItem {\n  id: string;\n  label: ReactNode;\n  value: ReactNode;\n}\nexport function DetailList({\n  items,\n  divided = false,\n  className,\n  ...props\n}: ComponentProps<\"dl\"> & {\n  items: readonly DetailItem[];\n  /** Separate rows with hairlines, for denser property panels. */\n  divided?: boolean;\n}) {\n  return (\n    <dl\n      data-slot=\"detail-list\"\n      data-divided={divided || undefined}\n      className={cn(\n        \"@container/details m-0 grid text-sm\",\n        divided ? \"divide-y divide-border/60\" : \"gap-3\",\n        className,\n      )}\n      {...props}\n    >\n      {items.map((item) => (\n        <div\n          key={item.id}\n          data-slot=\"detail-list-item\"\n          className={cn(\n            \"grid grid-cols-1 items-baseline gap-1 @min-[16rem]/details:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] @min-[16rem]/details:gap-4\",\n            divided && \"py-2.5 first:pt-0 last:pb-0\",\n          )}\n        >\n          <dt className=\"min-w-0 font-normal text-muted-foreground [overflow-wrap:anywhere]\">\n            {item.label}\n          </dt>\n          <dd className=\"m-0 min-w-0 break-words tabular-nums [overflow-wrap:anywhere]\">\n            {item.value}\n          </dd>\n        </div>\n      ))}\n    </dl>\n  );\n}\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/components/detail-list. Requires an initialized shadcn/ui project with Tailwind CSS v4."
}
