Chain Of Thought
A collapsible trail of model reasoning steps.
Import
tsx
import { ChainOfThought } from "@cronus-ui/ui";
bash
npx cronus-ui add chain-of-thought
Examples
API Reference
Generated from the component's exported types.
ChainOfThoughtLabels
| Prop | Type | Default | Description |
|---|---|---|---|
header* | string | — | — |
ChainOfThoughtProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Controlled open state. |
defaultOpen | boolean | false | Uncontrolled initial open state. |
onOpenChange | (open: boolean) => void | — | Called when the open state changes. |
labels | Partial<ChainOfThoughtLabels> | — | Override default English strings. |
ChainOfThoughtHeaderProps
Extends ComponentProps<typeof CollapsibleTrigger>
No own props — see the extended type above for available props.
ChainOfThoughtStepProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
icon | LucideIcon | — | — |
label* | string | — | — |
description | string | — | — |
status | "complete" | "active" | "pending" | "complete" | — |
ChainOfThoughtSearchResultsProps
Extends HTMLAttributes<HTMLDivElement>
No own props — see the extended type above for available props.
ChainOfThoughtSearchResultProps
Extends ComponentProps<typeof Badge>
No own props — see the extended type above for available props.
ChainOfThoughtContentProps
Extends ComponentProps<typeof CollapsibleContent>
No own props — see the extended type above for available props.
ChainOfThoughtImageProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
caption | string | — | — |