Skip to content

AiThoughtChain

Used to display multiple steps or complex reasoning paths taken by the AI. Supports single-node and multi-node timeline views.

Basic Usage

Single node mode, similar to AiThinking but with side border. Great for long text blocks.

Analyzing code...
Thinking complete
Basic Usage

Multi-node Timeline

Pass a list of steps to the items prop for a full timeline reasoning trace.

Analysis
Context Search
Generation
Verification
Timeline Mode

Nuxt Support

Thinking chain interactions are Nuxt 3/4 SSR compatible. Component state hydrations are handled at mount.

For more information, see Nuxt Integration Guide.

API

Props

NameDescriptionTypeDefault
titleTitle (Single mode)string
contentContent (Single mode)string
statusOverall status'thinking' | 'loading' | 'success' | 'complete' | 'error' | 'none''none'
itemsReasoning stepsAiThoughtItem[][]
dot-sizeNode dot size'small' | 'default' | 'large''default'
line-gradientWhether the line has gradientbooleanfalse
auto-collapseCollapses once status is complete (Single)booleanfalse

AiThoughtItem Structure

NameDescriptionType
titleStep titlestring
content / descriptionStep details textstring
statusStep statusAiThoughtStatus
expandedWhether details are expandedboolean
iconCustom icon namestring

Slots

NameDescription
defaultDetail area for single node mode

Theme Variables

AiThoughtChain is deeply integrated with the design system:

AI ThoughtChain CSS Variables

Variable NameDefault Value
--yh-ai-thought-chain-line-colorvar(--yh-border-color-lighter)
--yh-ai-thought-chain-active-colorvar(--yh-color-primary)

Released under the MIT License.