{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton",
  "type": "registry:ui",
  "title": "Skeleton",
  "description": "Loading placeholders: a block you size with classes, and a text group that announces Loading once.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/theme.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/ui/skeleton.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/ui/skeleton.tsx",
      "content": "import { cn } from '../lib/utils';\n\n/** A pulsing placeholder. Size it with width and height classes. It is hidden from assistive tech; announce loading once, around the group. */\nexport function Skeleton({ className }: { className?: string }) {\n  return <span aria-hidden className={cn('block animate-pulse rounded-kh bg-kh-line motion-reduce:animate-none', className)} />;\n}\n\n/** A paragraph of skeleton lines; the last is shorter, like real text. Announces `label` once. */\nexport function SkeletonText({ lines = 3, label = 'Loading', className }: { lines?: number; label?: string; className?: string }) {\n  return (\n    <span role=\"status\" aria-label={label} className={cn('flex flex-col gap-2', className)}>\n      {Array.from({ length: lines }, (_, i) => (\n        <Skeleton key={i} className={cn('h-3.5 rounded-kh-pill', i === lines - 1 && lines > 1 ? 'w-2/3' : 'w-full')} />\n      ))}\n    </span>\n  );\n}\n"
    }
  ]
}
