Agent Progress

An activity glyph, an action verb and a live timer for long agent tasks.

Preview

"use client";

import { AgentProgress } from "@/components/agents/loading-states/agent-progress";

export function AgentProgressPreview() {
  return (
    <AgentProgress
      label="Churning"
      initialSeconds={151.6}
      className="text-base"
    />
  );
}

Install

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

$ bunx --bun shadcn add @beui/agent-progress

API Reference

label?
string

Verb describing the agent's current activity.

Default—
elapsedSeconds?
number

Controlled elapsed time in seconds.

Default—
initialSeconds?
number

Starting time for the internal timer, in seconds.

Default0
running?
boolean

Whether the internal timer should advance. Ignored when elapsedSeconds is provided.

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

Override any built-in string. `{label}` fills `inProgress`.

Default—
className?
string

Classes merged onto the root element.

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

More in Agent Loading States

Updated