{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "thinking-block",
  "type": "registry:ui",
  "title": "Thinking block",
  "description": "React Thinking panel with a chevron header and aria-expanded that reveals the model's intermediate reasoning in muted text. Collapsed by default in chat.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/thinking-block.tsx",
      "type": "registry:ui",
      "target": "components/ui/thinking-block.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { ChevronDownIcon } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction ThinkingBlock({\n  children,\n  defaultOpen = false,\n  className,\n}: {\n  children: React.ReactNode\n  defaultOpen?: boolean\n  className?: string\n}) {\n  const [open, setOpen] = React.useState(defaultOpen)\n  return (\n    <div data-slot=\"thinking-block\" className={cn(\"rounded-xl border border-border bg-sunken\", className)}>\n      <button\n        type=\"button\"\n        aria-expanded={open}\n        className=\"flex w-full items-center justify-between px-3 py-2 text-left text-xs font-medium text-fg-muted outline-none focus-visible:ring-2 focus-visible:ring-accent\"\n        onClick={() => setOpen((o) => !o)}\n      >\n        Thinking\n        <ChevronDownIcon className={cn(\"size-4 transition-transform duration-[140ms]\", open && \"rotate-180\")} />\n      </button>\n      {open ? <div className=\"border-t border-border px-3 py-2 text-xs leading-[1.55] text-fg-muted\">{children}</div> : null}\n    </div>\n  )\n}\nexport { ThinkingBlock }\n"
    }
  ]
}
