{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "thinking-indicator",
  "type": "registry:component",
  "title": "Thinking Indicator",
  "description": "A quiet shimmer status line with optional elapsed time and label swaps. Adapted from Pearl.",
  "registryDependencies": [
    "surfaces"
  ],
  "files": [
    {
      "path": "registry/tonic/thinking-indicator/thinking-indicator.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n  ShimmerLabel,\n  thinkSwapEnter,\n  threadMeta,\n} from \"@/registry/tonic/lib/surfaces\"\n\nexport type ThinkingIndicatorProps = Omit<\n  React.ComponentProps<\"div\">,\n  \"children\" | \"label\" | \"elapsed\"\n> & {\n  label: string\n  elapsed?: string\n}\n\n/** Quiet shimmer status line with optional elapsed time and label swaps. */\nexport function ThinkingIndicator({\n  label,\n  elapsed,\n  className,\n  ...props\n}: ThinkingIndicatorProps) {\n  return (\n    <div\n      data-slot=\"thinking-indicator\"\n      role=\"status\"\n      aria-live=\"polite\"\n      aria-label={elapsed ? `${label}, ${elapsed}` : label}\n      className={cn(\"flex items-center gap-1.5 py-0.5\", threadMeta, className)}\n      {...props}\n    >\n      <ShimmerLabel\n        key={label}\n        className={cn(\"relative inline-block\", thinkSwapEnter)}\n      >\n        {label}\n      </ShimmerLabel>\n      {elapsed !== undefined ? (\n        <span className=\"tabular-nums opacity-80\">{elapsed}</span>\n      ) : null}\n    </div>\n  )\n}\n",
      "type": "registry:component"
    }
  ]
}