This component no longer exists. It was in prompt-kit’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Chain Of Thought
prompt-kit/chain-of-thoughtRemovedComponent
A component for displaying a chain of thought process with collapsible steps and triggers.
Live preview
live · rendered by the registry
Rendered by prompt-kit on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ibelick/prompt-kit/HEAD/public/c/chain-of-thought.jsonSource
1"use client"23import {4 Collapsible,5 CollapsibleContent,6 CollapsibleTrigger,7} from "@/components/ui/collapsible"8import { cn } from "@/lib/utils"9import { ChevronDown, Circle } from "lucide-react"10import React from "react"1112export type ChainOfThoughtItemProps = React.ComponentProps<"div">1314export const ChainOfThoughtItem = ({15 children,16 className,17 ...props18}: ChainOfThoughtItemProps) => (19 <div className={cn("text-muted-foreground text-sm", className)} {...props}>20 {children}21 </div>22)2324export type ChainOfThoughtTriggerProps = React.ComponentProps<25 typeof CollapsibleTrigger26> & {27 leftIcon?: React.ReactNode28 swapIconOnHover?: boolean29}3031export const ChainOfThoughtTrigger = ({32 children,33 className,34 leftIcon,35 swapIconOnHover = true,36 ...props37}: ChainOfThoughtTriggerProps) => (38 <CollapsibleTrigger39 className={cn(40 "group text-muted-foreground hover:text-foreground flex cursor-pointer items-center justify-start gap-1 text-left text-sm transition-colors",41 className42 )}43 {...props}44 >45 <div className="flex items-center gap-2">46 {leftIcon ? (47 <span className="relative inline-flex size-4 items-center justify-center">48 <span49 className={cn(50 "transition-opacity",51 swapIconOnHover && "group-hover:opacity-0"52 )}53 >54 {leftIcon}55 </span>56 {swapIconOnHover && (57 <ChevronDown className="absolute size-4 opacity-0 transition-opacity group-hover:opacity-100 group-data-[state=open]:rotate-180" />58 )}59 </span>60 ) : (61 <span className="relative inline-flex size-4 items-center justify-center">62 <Circle className="size-2 fill-current" />63 </span>64 )}65 <span>{children}</span>66 </div>67 {!leftIcon && (68 <ChevronDown className="size-4 transition-transform group-data-[state=open]:rotate-180" />69 )}70 </CollapsibleTrigger>71)7273export type ChainOfThoughtContentProps = React.ComponentProps<74 typeof CollapsibleContent75>7677export const ChainOfThoughtContent = ({78 children,79 className,80 ...props81}: ChainOfThoughtContentProps) => {82 return (83 <CollapsibleContent84 className={cn(85 "text-popover-foreground data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down overflow-hidden",86 className87 )}88 {...props}89 >90 <div className="grid grid-cols-[min-content_minmax(0,1fr)] gap-x-4">91// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from prompt-kit
All 12 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Chat Containerchat-container | prompt-kit | Components | Free | 1 dep | |
| Code Blockcode-block | prompt-kit | Components | Free | 1 dep | |
| File Uploadfile-upload | prompt-kit | Components | Free | no deps | |
| Jsx Previewjsx-preview | prompt-kit | Components | Free | 1 dep | |
| Loaderloader | prompt-kit | Components | Free | no deps | |
| Markdownmarkdown | prompt-kit | Components | Free | 4 deps · 2 files | |
| Messagemessage | prompt-kit | Components | Free | 5 deps · 3 files | |
| Prompt Inputprompt-input | prompt-kit | Components | Free | no deps |
