ReasoningPreview
Collapsible reasoning disclosure for AI thinking text.
Overview
Reasoning displays model reasoning or thinking text behind a collapsible trigger. Consumers own the text, streaming status, and persistence.
The trigger shows active thinking with isStreaming, auto-opens when reasoning starts, and auto-closes after reasoning finishes.
Usage
import {
Reasoning,
ReasoningContent,
ReasoningTrigger,
} from "@tilt-legal/cubitt-components/chat-elements";Examples
Default
<Reasoning defaultOpen duration={4}>
<ReasoningTrigger />
<ReasoningContent>
I checked the uploaded lease summary first because it contains the operative termination language.
</ReasoningContent>
</Reasoning>Streaming
<Reasoning isStreaming>
<ReasoningTrigger />
<ReasoningContent>
Checking the matter sources before drafting the final response...
</ReasoningContent>
</Reasoning>