{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "separator",
  "type": "registry:ui",
  "title": "Separator",
  "description": "A hairline between groups, horizontal or vertical, decorative or a real separator role.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/theme.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/ui/separator.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/ui/separator.tsx",
      "content": "import { cn } from '../lib/utils';\n\nexport interface SeparatorProps {\n  orientation?: 'horizontal' | 'vertical';\n  /** Purely visual by default (hidden from assistive tech). Set false when the rule marks a real change of topic. */\n  decorative?: boolean;\n  className?: string;\n}\n\n/** A hairline between groups. A vertical one needs a parent with a height (a flex row works). */\nexport function Separator({ orientation = 'horizontal', decorative = true, className }: SeparatorProps) {\n  return (\n    <div\n      role={decorative ? 'none' : 'separator'}\n      aria-orientation={decorative || orientation === 'horizontal' ? undefined : 'vertical'}\n      data-orientation={orientation}\n      className={cn('shrink-0 bg-kh-line', orientation === 'horizontal' ? 'h-px w-full' : 'w-px self-stretch', className)}\n    />\n  );\n}\n"
    }
  ]
}
