lumesec

Thinking Indicator

AI chats

About

A loading indicator for AI chat interfaces that shows an animated pixel wave while the model is "thinking", with a rolling seconds counter that settles into a "Thought for Ns" summary and expands to reveal the reasoning once finished.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";

import UiThinking from "@/components/ui/ui-thinking";

export default function UiThinkingDemo() {
  const [done, setDone] = React.useState(false);

  React.useEffect(() => {
    const timer = window.setTimeout(() => setDone(true), 4000);
    return () => window.clearTimeout(timer);
  }, []);

  return (
    <div className="flex w-full items-center justify-center p-10">
      <UiThinking
        done={done}
        onDone={(seconds) => console.log(`thought for ${seconds}s`)}
      >
        The reasoning, shown once thinking is done.
      </UiThinking>
    </div>
  );
}

More by lumesec

View all
  • Geo Traceroute

    Geo Traceroute

    83
  • Date Picker

    Date Picker

    28
  • Rotary Dial

    Rotary Dial

    21
  • Region Picker

    Region Picker

    20
  • Effort Slider

    Effort Slider

    17
  • Pixel Toaster

    Pixel Toaster

    14
  • Connection Globe

    Connection Globe

    11
  • Pixel Select

    Pixel Select

    11

More in AI chats

View all
  • AI Actions

    AI Actions

    355
  • AI Suggestions

    AI Suggestions

    21
  • AI Artifact

    AI Artifact

    14
  • Agent Chat

    Agent Chat

    21
  • AI Orb

    AI Orb

    200
  • Aquarium Prompt

    Aquarium Prompt

    129
  • AI Response

    AI Response

    16
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    64