Utility
AI
Terminal
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/thinking-block.json
Usage
import { ThinkingBlock } from "@/components/ui/thinking-block";<ThinkingBlock
content="The user wants to refactor the function. I should split it into smaller helpers..."
tokenCount={1284}
duration={3200}
/>API Reference
ThinkingBlock
| Prop | Type | Default |
|---|---|---|
content | string | required |
streaming | boolean | false |
defaultCollapsed | boolean | true |
label | string | "Reasoning" |
tokenCount | number | undefined |
duration | number | undefined |