Thinking Shimmer

A quiet shimmer over the agent's status while it keeps working.

Preview

"use client";

import { ThinkingShimmer } from "@/components/agents/loading-states/thinking-shimmer";

export function ThinkingShimmerPreview() {
  return (
    <ThinkingShimmer className="text-lg" duration={1.8}>
      Thinking…
    </ThinkingShimmer>
  );
}

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/thinking-shimmer

API Reference

children?
ReactNode

Loading message shown to the user.

Default—
duration?
number

Seconds taken for one shimmer pass.

Default1.8
labels?
Partial<{ thinking: string; churning: string; inProgress: string; reasoning: string; phraseThinking: string; phraseReading: string; phraseConnecting: string; phraseForming: string; }>

Override any built-in string.

Default—
className?
string

Classes merged onto the shimmering text.

Default—
Also on React Native. Shimmers, cycling reasoning text and a progress timer.

More in Agent Loading States

Updated