BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neon-ui/chain-of-thought

ChainOfThought

neon-ui/chain-of-thought
FreeComponent

Collapsible step-by-step reasoning rail with statuses, search-result chips, and images.

Install it

npx shadcn@latest add https://ui.neon.com/r/chain-of-thought.json

Source

src/components/chain-of-thought/chain-of-thought.tsxui.neon.com/r/chain-of-thought.json · first 6 KB
1"use client";
2
3import { Collapsible } from "@base-ui/react/collapsible";
4import { ArrowRight01Icon } from "@hugeicons/core-free-icons";
5import { HugeiconsIcon } from "@hugeicons/react";
6import type { ComponentProps, ReactNode } from "react";
7
8import { Badge } from "@/components/ui/badge";
9import { cn } from "@/lib/utils";
10
11export type ChainOfThoughtProps = Collapsible.Root.Props;
12
13/* ─────────────────────────────────────────────────────
14 * Discrete, labeled reasoning steps — searches, tool
15 * calls, drafts — folded behind the house log-line rail.
16 * Reasoning is for one continuous thinking stream; this
17 * is for steps the reader can scan one by one.
18 * Inspired by Chain of Thought from Vercel's AI SDK
19 * Elements (elements.ai-sdk.dev), rebuilt on Base UI.
20 * ─────────────────────────────────────────────────── */
21export const ChainOfThought = ({
22 className,
23 ...props
24}: ChainOfThoughtProps) => (
25 <Collapsible.Root
26 className={cn(
27 "w-full min-w-0 border-border/60 border-l-2 pl-2.5",
28 className
29 )}
30 data-slot="chain-of-thought"
31 {...props}
32 />
33);
34
35export type ChainOfThoughtHeaderProps = Collapsible.Trigger.Props;
36
37/** The fold's handle. Defaults to "Chain of thought"; children replace it. */
38export const ChainOfThoughtHeader = ({
39 children,
40 className,
41 ...props
42}: ChainOfThoughtHeaderProps) => (
43 <Collapsible.Trigger
44 className={cn(
45 "group inline-flex items-center gap-1 py-0.5 text-muted-foreground text-xs transition-colors hover:text-foreground",
46 className
47 )}
48 data-slot="chain-of-thought-header"
49 {...props}
50 >
51 <HugeiconsIcon
52 aria-hidden
53 className="size-3 transition-transform duration-200 group-data-[panel-open]:rotate-90 motion-reduce:transition-none"
54 icon={ArrowRight01Icon}
55 strokeWidth={2}
56 />
57 {children ?? <span>Chain of thought</span>}
58 </Collapsible.Trigger>
59);
60
61export type ChainOfThoughtContentProps = Collapsible.Panel.Props;
62
63/** The unfolding step list. Children are `ChainOfThoughtStep` items. */
64export const ChainOfThoughtContent = ({
65 children,
66 className,
67 ...props
68}: ChainOfThoughtContentProps) => (
69 <Collapsible.Panel
70 className={cn(
71// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • @hugeicons/react
  • @hugeicons/core-free-icons

Other registry items

  • utils
  • https://ui.neon.com/r/neon-tokens.json
  • https://ui.neon.com/r/badge.json

Files it writes

  • src/components/chain-of-thought/chain-of-thought.tsx

Facts

Registry
neon-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ui.neon.com neondatabase/ui on GitHub Raw registry item This item as JSON

More from neon-ui

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ActivityFeedactivity-feedneon-uiComponentsFree2 deps
AgentChatagent-chatneon-uiComponentsFree6 deps
AnimatedWashanimated-washneon-uiComponentsFreeno deps · 2 files
ApiKeyListapi-key-listneon-uiComponentsFree2 deps
AppCardapp-cardneon-uiComponentsFree2 deps
AppCreatorapp-creatorneon-uiComponentsFree2 deps
AuthFormauth-formneon-uiComponentsFreeno deps
AutoscaleChartautoscale-chartneon-uiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex