Chain of Thought
The ChainOfThought component provides a visual representation of an AI's reasoning process, showing step-by-step thinking with support for search results, images, and progress indicators. It helps users understand how AI arrives at conclusions.
Installation
If you prefer using jsrepo, please install via the command below:
Props
ChainOfThought
| Name | Type | Default |
|---|---|---|
open | boolean | |
defaultOpen | boolean | false |
onOpenChange | (open: boolean) => void | |
class | string | |
children | Snippet | |
...restProps | HTMLAttributes<HTMLDivElement> | |
ChainOfThoughtHeader
| Name | Type | Default |
|---|---|---|
class | string | |
children | Snippet | |
ChainOfThoughtContent
| Name | Type | Default |
|---|---|---|
class | string | |
children | Snippet | |
ChainOfThoughtStep
| Name | Type | Default |
|---|---|---|
label | string | |
icon | typeof Icon | |
description | string | |
status | 'complete' | 'active' | 'pending' | 'complete' |
delay | number | |
class | string | |
children | Snippet | |
...restProps | HTMLAttributes<HTMLDivElement> | |
ChainOfThoughtImage
| Name | Type | Default |
|---|---|---|
caption | string | |
class | string | |
children | Snippet | |
...restProps | HTMLAttributes<HTMLDivElement> | |
ChainOfThoughtSearchResults
| Name | Type | Default |
|---|---|---|
class | string | |
children | Snippet | |
...restProps | HTMLAttributes<HTMLDivElement> | |
ChainOfThoughtSearchResult
| Name | Type | Default |
|---|---|---|
class | string | |
children | Snippet | |
...restProps | HTMLAttributes<HTMLElement> | |
