Aurora AI Chain of Thought
aurora-dinglebear-ai/aurora-ai-chain-of-thoughtFreeBlock
Aurora-native chain of thought parity surface from AI Elements.
Install it
npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-ai-chain-of-thought.jsonSource
1"use client"23import * as React from "react"4import { Brain, Check, ChevronDown } from "lucide-react"5import { Button } from "@/registry/aurora/ui/button"67// ChainOfThought — collapsible reasoning timeline with per-step status + streaming.8// Visual spec ported 1:1 from the Claude Design source. Axon orange is the9// AI/automation identity accent here (violet was removed from the system).10// Status colors come from the semantic token layer (success / error / muted).1112// ---------------------------------------------------------------------------13// Types14// ---------------------------------------------------------------------------1516export type CotStepStatus = "pending" | "inprog" | "done" | "error"1718export interface CotStep {19 /** Primary line of the step. */20 label: string21 /** Optional secondary line below the label. */22 detail?: string23 /** Step state — drives the status node + tinting. Defaults to "inprog". */24 status?: CotStepStatus25 /** Optional right-aligned timing label (e.g. "0.4s"). */26 duration?: string27}2829export interface ChainOfThoughtProps30 extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {31 /** Ordered reasoning steps. */32 steps?: CotStep[]33 /** Header summary on the right (e.g. "Thought for 4.2s"). */34 summary?: string35 /** Show the orange "AI" identity badge next to the title. */36 badge?: boolean37 /** Streaming mode — pulses the orange accent and adds a cursor to the active step. */38 isStreaming?: boolean39 /** Whether the timeline starts expanded. Defaults to open. */40 defaultOpen?: boolean41 /** Header title. Defaults to "Chain of thought". */42 title?: string43}4445// Styles: registry/aurora/styles/aurora-components.css (@layer aurora-components).4647const AXON = "var(--axon-orange)"4849// ---------------------------------------------------------------------------50// Streaming cursor51// ---------------------------------------------------------------------------5253function Cursor() {54 return (55 <span56 aria-hidden="true"57 style={{58 display: "inline-block",59 width: "2px",60 height: "1em",61 background: AXON,62 marginLeft: "3px",63 verticalAlign: "text-bottom",64 borderRadius: "1px",65 animation: "aurora-cot-blink 1s step-end infinite",66 }}67 />68 )69}7071// ---------------------------------------------------------------------------72// Status node — circular timeline marker73// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora AI Actionaurora-ai-action | aurora | Blocks | Free | 1 dep | |
| Aurora AI Actionsaurora-ai-actions | aurora | Blocks | Free | 1 dep | |
| Aurora AI Agentaurora-ai-agent | aurora | Blocks | Free | 1 dep | |
| Aurora AI Image Gridaurora-ai-ai-image-grid | aurora | Blocks | Free | 1 dep | |
| Aurora AI Attachmentsaurora-ai-attachments | aurora | Blocks | Free | 1 dep | |
| Aurora AI Audio Playeraurora-ai-audio-player | aurora | Blocks | Free | 1 dep | |
| Aurora AI Branchaurora-ai-branch | aurora | Blocks | Free | 1 dep | |
| Aurora AI Canvasaurora-ai-canvas | aurora | Blocks | Free | 1 dep |
