Reasoning
Collapsible thinking block that follows streaming.
Import
tsx
import { Reasoning } from "@cronus-ui/ui";
bash
npx cronus-ui add reasoning
Examples
API Reference
Generated from the component's exported types.
ReasoningLabels
| Prop | Type | Default | Description |
|---|---|---|---|
thinking* | string | — | — |
thoughtForFew* | string | — | — |
thoughtFor* | string | — | Use `{duration}` as the seconds placeholder. |
ReasoningProps
Extends ComponentProps<typeof Collapsible>
| Prop | Type | Default | Description |
|---|---|---|---|
isStreaming | boolean | false | — |
open | boolean | — | Controlled open state. |
defaultOpen | boolean | true | Uncontrolled initial open state. |
onOpenChange | (open: boolean) => void | — | Called when the open state changes. |
duration | number | — | — |
labels | Partial<ReasoningLabels> | — | Override default English strings. |
ReasoningTriggerProps
Extends ComponentProps<typeof CollapsibleTrigger>
No own props — see the extended type above for available props.
ReasoningContentProps
Extends ComponentProps<typeof CollapsibleContent>
No own props — see the extended type above for available props.