Chat Reasoning
Compact collapsible container for displaying model reasoning or chain-of-thought details. Shows a single-line summary when collapsed and expands to reveal full reasoning text.
@astryxdesign/lab
Usage
Compact collapsible container for displaying model reasoning or chain-of-thought details. Shows a single-line summary when collapsed and expands to reveal full reasoning text.
Typed props
| Prop | Type and behavior |
|---|---|
children | ReactNode · requiredReasoning content string or custom ReactNode. |
label | string · default 'Thinking'Header label displayed in the trigger line. |
duration | stringDuration string shown next to the label (e.g. "12s"). |
isStreaming | boolean · default falseWhether reasoning content is actively streaming. Displays animated shimmer effect. |
isExpanded | booleanControlled expanded state. |
defaultIsExpanded | boolean · default falseDefault expanded state for uncontrolled usage. |
onExpandedChange | (isExpanded: boolean) => voidCallback fired when the expanded state changes. |
xstyle | StyleXStylesStyleX styles for layout customization. |