Skip to content
IndexRequest a UIAboutContact

AI Thinking States

Three ways to show that an assistant is working (dots, shimmer, steps) with a Stop button and a finished answer.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean chat interface screenshot on a light background: a user message bubble on the right reading Summarise this report, below it on the left an assistant row with a small avatar and three soft grey dots in a pill, the middle dot slightly larger, a small Stop button with a square icon to the right, flat design, rounded corners, minimal and calm. Variants: a shimmering label Searching the web, and a checklist of three steps with the first two ticked. Negative: spinner, heavy shadows, gradients, text errors, clutter. Reduced motion: static dots.

About this pattern

Definition

Between sending a prompt and the first word of the answer, the interface has to say something is happening. Dots are the lightest signal, a shimmering label says what is happening, and a short step list shows real progress for longer jobs.

Purpose & UX principles

  • Use dots for waits under two seconds, a shimmer label for two to ten, and steps beyond that.
  • Always offer Stop while the assistant is working.
  • Replace the indicator with the answer in the same place so the layout does not jump.

Interaction states

  • Three style buttons, a Send button that runs the demo and a Stop button.

Motion specification

  • Dots bounce at 1.2s; the shimmer sweeps at 1.6s; each step ticks every 700ms.
  • Reduced motion: dots and shimmer are static, steps still tick as text.

Responsive behaviour

  • Announce status changes politely to screen readers; do not repeat the same message.
  • Keep the label specific: Searching the web is better than Thinking.

Code

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Style"><button data-p="0" aria-pressed="true">Dots</button><button data-p="1" aria-pressed="false">Shimmer</button><button data-p="2" aria-pressed="false">Steps</button></div><div class="ch"><div class="um">Summarise this report</div><div class="as" id="as" aria-live="polite"></div></div><div class="ac"><button class="mini" id="go" type="button">Send</button><button class="mini" id="st" type="button" disabled>Stop</button></div></div>

Related patterns

Streaming Chat Response

↗
Streaming Chat ResponseAI & Conversational

Agent Steps Timeline

↗
Agent Steps TimelineAI & Conversational

AI Prompt Composer

↗
AI Prompt ComposerAI & Conversational