Reasoning Text
A timed reasoning stream that follows the latest thought, then folds into an inspectable duration summary.
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/reasoning-text.jsonAPI reference
Reasoning Text
| Prop | Type | Default | Description |
|---|---|---|---|
sentences | readonly string[] | — | Provides the reasoning steps revealed by the stream. |
delays | readonly number[] | [700, 900, 800, 850, 800, 900] | Controls the reveal cadence for each reasoning step. |
collapseDelay | number | 360 | Waits before folding the completed reasoning into its summary. |
defaultOpen | boolean | false | Keeps completed reasoning expanded by default. |
thinkingLabel | string | Thinking… | Labels the active reasoning state. |