Shehryar Ali

Thinking State

AI chats 2

About

Expandable agent trace that runs once and settles: steps, reasoning, web search with sources, or a coding tool run with diff stats. Content and variant come through props; shadcn tokens in light and dark.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Thinking State to your project and fits it to your theme.

Code

How Thinking State is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ThinkingState from "@/components/ui/thinking-state";

export default function ThinkingStateDemo() {
  return (
    <div className="flex min-h-[520px] w-full items-center justify-center bg-background p-8">
      <ThinkingState
        variant="coding"
        activeLabel="Running tools"
        doneLabel="Ran 4 tools"
        defaultExpanded
        className="w-full max-w-md rounded-xl border border-border bg-card p-5 shadow-sm"
        rows={[
          { kind: "search", primary: "Grep", secondary: "rateLimit(", mono: true },
          { kind: "read", primary: "Read", secondary: "src/api/middleware.ts", mono: true },
          { kind: "edit", primary: "Edit", secondary: "src/api/rate-limit.ts", mono: true, add: 74, del: 41 },
          { kind: "run", primary: "Run", secondary: "pnpm test api", mono: true },
        ]}
      />
    </div>
  );
}

More by Shehryar Ali

View all
  • Loading State

    Loading State

    20
  • Insight Cards

    Insight Cards

    10
  • Streaming Text

    Streaming Text

    9
  • Flowchart

    Flowchart

    5
  • Filter Table

    Filter Table

    3
  • Murmur Ember Silk

    Murmur Ember Silk

    3
  • Selection Actions

    Selection Actions

    2
  • Murmur Ember Tide

    Murmur Ember Tide

    1

More in AI chats

View all
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    27
  • AI Actions

    AI Actions

    372
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    30
  • Aquarium Prompt

    Aquarium Prompt

    223
  • Message Parts

    Message Parts

    11
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    37
  • AI Chat Composer

    AI Chat Composer

    22