{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton",
  "title": "Skeleton",
  "description": "A dithered shimmer placeholder block, sized with className or style.",
  "dependencies": [],
  "registryDependencies": [
    "https://dotgrain.space/r/engine.json"
  ],
  "files": [
    {
      "path": "registry/ui/skeleton.tsx",
      "content": "\"use client\";\n\nimport type { CSSProperties, Ref } from \"react\";\nimport { Quantize } from \"@/lib/dotgrain/quantize\";\nimport type { DitherTokens } from \"@/lib/dotgrain/types\";\n\nexport type SkeletonProps = Partial<Omit<DitherTokens, \"mode\" | \"glyphs\">> & {\n  /** Size it with className or style, like any block. */\n  className?: string;\n  style?: CSSProperties;\n  ref?: Ref<HTMLDivElement>;\n};\n\n/** A placeholder block with a dithered shimmer. Hidden from assistive tech; mark the loading region `aria-busy` instead. */\nexport function Skeleton({ className, style, ref, ...tokens }: SkeletonProps) {\n  return (\n    <div ref={ref} aria-hidden=\"true\" className={className} style={{ position: \"relative\", height: 16, ...style }}>\n      <Quantize source={{ kind: \"field\", field: \"shimmer\" }} {...tokens} mode=\"dither\" style={{ position: \"absolute\", inset: 0 }} />\n    </div>\n  );\n}\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "modes": [
      "dither"
    ]
  },
  "categories": [
    "feedback"
  ],
  "type": "registry:ui"
}