An expanded panel revealing the steps the AI worked through before giving its answer.
Loading demo: thinking-panel-real-world
npx sdaia-ui@latest add thinking-panel
import { ThinkingPanel } from '@/components/ui/ThinkingPanel';1<ThinkingPanel2defaultState="expanded"3title="Execution Trace Monitor"4pipelineLabel="Active Pipeline"5count="4 activities executed"6items={[7{ type: "reasoning", title: "Reasoning Chain Initialized", timestamp: "14:40:02", description: "…" },8{ type: "search", title: "External Web Search Webhook", timestamp: "14:40:04", query: "…", result: "200 OK" },9]}10/>
A dashed placeholder shown when there is no active trace.
Loading demo: thinking-panel-hidden
Thinking dots, a running label, an activity-count badge and an Expand button.
Loading demo: thinking-panel-collapsed
A header over a reasoning timeline of Trace Items on one continuous rail.
Loading demo: thinking-panel-expanded
Prop | Type | Default | Required |
|---|---|---|---|
variant | 'brand' | 'neutral' | 'outline' | 'brand' | optional |
state | 'hidden' | 'collapsed' | 'expanded' | — | optional |
defaultState | 'hidden' | 'collapsed' | 'expanded' | 'collapsed' | optional |
onStateChange | (state) => void | — | optional |
items | TraceItemProps[] | — | optional |
count | ReactNode | — | optional |
title | ReactNode | labels.title ('Reasoning trace') | optional |
pipelineLabel | ReactNode | — | optional |
showCount / showPipeline | boolean | true | optional |
labels | Partial<ThinkingPanelLabels> | — | optional |
dir | 'ltr' | 'rtl' | — | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Fills the width of its container in all three states (hidden, collapsed, expanded). |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same layout with the mobile token values. The title is truncated when space is short. |