Thinking Shimmer
The newest thought arrives in focus while the ones before it drift up and soften, under a label that shimmers while the work goes on. When it finishes it folds to one line, "Thought for 6s · 5 steps", with the whole trail a click away.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
A window, not a log
Only the last three thoughts are on screen, so the block never grows while it works and the answer below does not jump with every step. Finished, it stays in the thread as a record instead of vanishing when the answer starts.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Thinking Shimmer for this.
Install it: npx shadcn@latest add @layro/thinking-shimmer
(the @layro registry is set up in components.json, with LAYRO_KEY in .env.local)
Import it from @/components/ui/thinking-shimmer.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Free components install through the @layro registry with your CLI token: see the Namespaced tab.
When to use it
Use Thinking Shimmer while a model reasons: append each thought as it streams, then set done to fold it into a receipt. For the answer itself use Token Stream.
Usage
import { ThinkingShimmer } from "@/components/ui/thinking-shimmer";
export function Reasoning({ thoughts, done }: { thoughts: string[]; done: boolean }) {
return <ThinkingShimmer thoughts={thoughts} done={done} />;
}API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
thoughtsrequired | string[] | The reasoning so far, oldest first. Append as it arrives. |
done | boolean | Finished: fold into a one-line receipt. |
label | string | The word that shimmers. Default "Thinking". |
seconds | number | Seconds taken. Counted from mount when left out. |
visible | number | How many thoughts the live window shows. Default 3. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themeLifetime access
Every component, and everything we ship next.
- All 132 components, source included
- Every template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in Creative
All Creative componentsToken Stream
FreeStreaming text that flows evenly instead of landing in bursts.
Tool Call Trail
FreeAn agent's tool calls drawn as a path, with a spark on the step running now.
Contour Field
FreeTopographic lines that shift slowly behind a section and part around the pointer.
Ember Field
FreeWarm sparks rising through a section, gathering and swirling around the pointer.
Image Trail
FreePhotos drop along the pointer's path and lift away a moment later.
Odometer Stats
FreeNumbers that roll into place digit by digit, like a mechanical counter.