{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "spec-sheet-descriptions",
  "title": "Spec Sheet Descriptions",
  "description": "A product or device specification sheet in grouped vertical label-over-value cells that wraps to one column in narrow containers, not narrow viewports.",
  "registryDependencies": [
    "@tealmac/descriptions"
  ],
  "files": [
    {
      "path": "registry/patterns/spec-sheet-descriptions/spec-sheet-descriptions.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n  Descriptions,\n  type DescriptionsItem,\n} from \"@/components/ui/descriptions\"\n\nexport interface SpecGroup {\n  title: string\n  specs: DescriptionsItem[]\n}\n\nexport interface SpecSheetDescriptionsProps {\n  product: string\n  groups: SpecGroup[]\n}\n\n/**\n * Spec sheets are scanned, not read: short values under quiet labels, grouped\n * under headings. The layout is vertical (label above value) so values of\n * different lengths align on a baseline, and the columns come from the\n * container's width, so the same sheet works in a wide page and in a narrow\n * side drawer.\n */\nexport function SpecSheetDescriptions({\n  product,\n  groups,\n}: SpecSheetDescriptionsProps) {\n  return (\n    <article\n      aria-label={`${product} specifications`}\n      className=\"w-full space-y-6\"\n    >\n      <h3 className=\"text-lg font-semibold\">{product}</h3>\n      {groups.map((g) => (\n        <section key={g.title} aria-label={g.title} className=\"space-y-2\">\n          <h4 className=\"text-muted-foreground text-xs font-semibold tracking-wide uppercase\">\n            {g.title}\n          </h4>\n          <Descriptions layout=\"vertical\" columns={3} items={g.specs} />\n        </section>\n      ))}\n    </article>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}