{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton",
  "type": "registry:component",
  "title": "Skeleton",
  "description": "Loading placeholders: RowsSkeleton (kit loading state), InlineCardSkeleton, CarouselSkeleton.",
  "registryDependencies": [
    "https://mcpblocks.dev/r/host-tokens.json"
  ],
  "files": [
    {
      "path": "registry/mcpblocks/components/skeleton.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/** A single skeleton block. Prefer skeletons over spinners for inline content. */\nexport function HostSkeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"host-skeleton\"\n      className={cn(\"animate-pulse rounded-host-sm bg-host-bg-secondary\", className)}\n      {...props}\n    />\n  )\n}\n\n/** Skeleton that matches InlineCard's layout, so the swap is seamless. */\nexport function InlineCardSkeleton({\n  fields = 4,\n  actions = 2,\n  className,\n  ...props\n}: React.ComponentProps<\"div\"> & { fields?: number; actions?: 0 | 1 | 2 }) {\n  return (\n    <div\n      role=\"status\"\n      aria-label=\"Loading\"\n      className={cn(\n        \"flex w-full flex-col gap-4 rounded-host-xl border-[length:var(--border-width-regular,0.5px)] border-host-border-secondary bg-host-bg p-5\",\n        className\n      )}\n      {...props}\n    >\n      <div className=\"flex items-center justify-between\">\n        <HostSkeleton className=\"h-4 w-2/5\" />\n        <HostSkeleton className=\"h-5 w-20 rounded-full\" />\n      </div>\n      <div className=\"grid grid-cols-2 gap-3\">\n        {Array.from({ length: fields }).map((_, i) => (\n          <div key={i} className=\"flex flex-col gap-1.5\">\n            <HostSkeleton className=\"h-3 w-1/3\" />\n            <HostSkeleton className=\"h-4 w-2/3\" />\n          </div>\n        ))}\n      </div>\n      {actions > 0 ? (\n        <div className=\"flex gap-2\">\n          {Array.from({ length: actions }).map((_, i) => (\n            <HostSkeleton key={i} className=\"h-11 flex-1 rounded-host-md\" />\n          ))}\n        </div>\n      ) : null}\n    </div>\n  )\n}\n\n/** Skeleton for a Carousel row. */\nexport function CarouselSkeleton({ count = 3, cardWidth = 210 }: { count?: number; cardWidth?: number }) {\n  return (\n    <div role=\"status\" aria-label=\"Loading\" className=\"flex gap-3 overflow-hidden\">\n      {Array.from({ length: count }).map((_, i) => (\n        <div\n          key={i}\n          className=\"flex shrink-0 flex-col overflow-hidden rounded-host-xl border-[length:var(--border-width-regular,0.5px)] border-host-border-secondary bg-host-bg\"\n          style={{ width: cardWidth }}\n        >\n          <HostSkeleton className=\"aspect-[16/10] w-full rounded-none\" />\n          <div className=\"flex flex-col gap-1.5 p-3\">\n            <HostSkeleton className=\"h-4 w-3/4\" />\n            <HostSkeleton className=\"h-3 w-1/2\" />\n          </div>\n        </div>\n      ))}\n    </div>\n  )\n}\n\n/**\n * Rows of avatar + three columns, the \"Loading\" state from the\n * MCP Apps for Claude kit. Use it while a list or table loads.\n */\nexport function RowsSkeleton({\n  rows = 4,\n  columns = 3,\n  avatar = true,\n  className,\n  ...props\n}: React.ComponentProps<\"div\"> & { rows?: number; columns?: number; avatar?: boolean }) {\n  return (\n    <div role=\"status\" aria-label=\"Loading\" className={cn(\"flex w-full flex-col gap-6 p-6\", className)} {...props}>\n      {Array.from({ length: rows }).map((_, r) => (\n        <div key={r} className=\"flex h-8 items-center gap-5\">\n          {avatar ? <HostSkeleton className=\"size-8 shrink-0\" style={{ borderRadius: 9999 }} /> : null}\n          <div className=\"grid h-full flex-1 gap-5\" style={{ gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))` }}>\n            {Array.from({ length: columns }).map((_, c) => (\n              <HostSkeleton key={c} className=\"h-full\" style={{ borderRadius: \"var(--border-radius-md)\" }} />\n            ))}\n          </div>\n        </div>\n      ))}\n    </div>\n  )\n}\n",
      "type": "registry:component"
    }
  ]
}