{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton",
  "title": "Skeleton",
  "author": "AniBT <https://anibt.net>",
  "description": "AniBT loading placeholder: one step deeper than a field, radius 10, a slow pulse and nothing else; box, line, pill and circle shapes.",
  "registryDependencies": [
    "@anibt/theme"
  ],
  "files": [
    {
      "path": "registry/anibt/ui/skeleton.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/**\n * Skeleton — the AniBT 「贴纸手账」 loading placeholder.\n *\n * One step deeper than a field (`--anibt-deep2`), radius 10, and a slow pulse\n * as the only motion — no shimmer gradient. Size it like the thing it stands\n * in for: a 2:3 cover, a 14px title line, a 20px tag. `shape=\"pill\"` is for\n * tags and counts, `shape=\"circle\"` for avatars.\n *\n * Mark the region that is loading with `aria-busy`, not the skeletons: they\n * are `aria-hidden`, because a list of grey boxes says nothing to a screen\n * reader. Under reduced motion the pulse stops.\n */\nfunction Skeleton({\n  className,\n  shape = \"box\",\n  ...props\n}: React.ComponentProps<\"div\"> & {\n  /** `box` (radius 10), `line` (radius 6, for text), `pill`, `circle`. */\n  shape?: \"box\" | \"line\" | \"pill\" | \"circle\"\n}) {\n  return (\n    <div\n      data-slot=\"skeleton\"\n      data-shape={shape}\n      aria-hidden=\"true\"\n      className={cn(\n        \"animate-pulse bg-anibt-deep2 motion-reduce:animate-none\",\n        shape === \"box\" && \"rounded-[10px]\",\n        shape === \"line\" && \"h-3.5 rounded-[6px]\",\n        shape === \"pill\" && \"rounded-full\",\n        shape === \"circle\" && \"aspect-square rounded-full\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Skeleton }\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "feedback"
  ],
  "type": "registry:ui"
}