Skip to main content

XThoughtChain

Displays an AI reasoning chain — a sequence of thinking steps with status indicators.

Source: Re-exported from @ant-design/x. Full documentation: Ant Design X ThoughtChain

Basic Usage

import { XThoughtChain } from '@vef-framework-react/components';

const items = [
{
key: '1',
title: 'Analyzing the question',
status: 'success',
description: 'Identified key concepts: React, forms, validation.',
},
{
key: '2',
title: 'Searching knowledge base',
status: 'success',
},
{
key: '3',
title: 'Generating response',
status: 'pending',
},
];

export default function Demo() {
return <XThoughtChain items={items} />;
}

API

PropTypeDefaultDescription
itemsThoughtChainItem[]Chain steps
collapsibleboolean | CollapsibleConfigfalseAllow collapsing steps
size'small' | 'middle' | 'large''middle'Component size

ThoughtChainItem

FieldTypeDescription
keystringUnique key
titleReactNodeStep title
descriptionReactNodeStep description
status'pending' | 'success' | 'error'Step status
iconReactNodeCustom icon
contentReactNodeExpanded content
footerReactNodeFooter content

For the full API, see Ant Design X ThoughtChain docs.