Agent Loading States
Agent Loading States provides several visual placeholders for work that has not completed.
Practical React example
Choose one lightweight waiting state for a bounded agent response region.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/agents/loading-states/index.ts and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, motion, react, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Choose one lightweight waiting state for a bounded agent response region
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import {
ReasoningText,
type ReasoningTextVariant,
} from "@/components/agents/loading-states/reasoning-text";
const EXAMPLES: {
label: string;
variant: ReasoningTextVariant;
phrases: string[];
}[] = [
{
label: "Cascade",
variant: "cascade",
phrases: [
"Thinking",
"Reading the request",
"Working through the details",
"Preparing the answer",
],
},
{
label: "Swap",
variant: "swap",
phrases: [
"Thinking",
"Reading the request",
"Working through the details",
"Preparing the answer",
],
},
{
label: "Scramble",
variant: "scramble",
phrases: ["Thinking", "Searching", "Reasoning", "Composing"],
},
];
export function ReasoningTextPreview() {
return (
<div className="grid w-full max-w-sm gap-7">
{EXAMPLES.map(({ label, variant, phrases }) => (
<div key={variant} className="grid gap-2">
<span className="text-[11px] font-medium uppercase tracking-wider text-muted-foreground/60">
{label}
</span>
<ReasoningText
variant={variant}
phrases={phrases}
className="text-base"
/>
</div>
))}
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Mount the chosen placeholder only while the real request is pending. Keep a clear label and transition to empty or error content when the request ends.
Customization
- ThinkingShimmerProps.children
- Optional; ReactNode. Loading message shown to the user.
- ThinkingShimmerProps.duration
- Optional; number. Seconds taken for one shimmer pass.
- ThinkingShimmerProps.className
- Optional; string.
- AgentProgressProps.label
- Optional; string. Verb describing the agent's current activity.
- AgentProgressProps.elapsedSeconds
- Optional; number. Controlled elapsed time in seconds.
- AgentProgressProps.initialSeconds
- Optional; number. Starting time for the internal timer, in seconds.
- AgentProgressProps.running
- Optional; boolean. Whether the internal timer should advance. Ignored when elapsedSeconds is provided.
- AgentProgressProps.className
- Optional; string.
- ReasoningTextProps.phrases
- Optional; string[]. Phrases cycled through while the agent works.
- ReasoningTextProps.variant
- Optional; ReasoningTextVariant. Animation used when the active phrase changes.
- ReasoningTextProps.interval
- Optional; number. Milliseconds each phrase remains visible.
- ReasoningTextProps.shimmerDuration
- Optional; number. Seconds taken for one shimmer pass.
- ReasoningTextProps.indicator
- Optional; ReactNode. Optional leading visual. Defaults to a terminal-style ASCII loader.
- ReasoningTextProps.className
- Optional; string.
Integration notes
- Animation does not imply progress or a reliable remaining duration.
- Avoid several simultaneous live loading announcements for one operation.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.