Skip to content
AI Elements

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

Skip ChainOfThoughtLabels props table
PropTypeDefaultDescription
header*
string

ChainOfThoughtProps

Extends HTMLAttributes<HTMLDivElement>

Skip ChainOfThoughtProps props table
PropTypeDefaultDescription
open
booleanControlled open state.
defaultOpen
booleanfalseUncontrolled initial open state.
onOpenChange
(open: boolean) => voidCalled 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>

Skip ChainOfThoughtStepProps props table
PropTypeDefaultDescription
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>

Skip ChainOfThoughtImageProps props table
PropTypeDefaultDescription
caption
string