Skip to content
AI Elements

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

Skip ReasoningLabels props table
PropTypeDefaultDescription
thinking*
string
thoughtForFew*
string
thoughtFor*
stringUse `{duration}` as the seconds placeholder.

ReasoningProps

Extends ComponentProps<typeof Collapsible>

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