Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Agent Loading States

Agent Progress

AgentProgress.vue
Churning

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/agent-progress

Import the shared styles once in your application.

TSUsage
import AgentProgress from '@/components/beui/agents/AgentProgress.vue'
import '@/components/beui/styles.css'

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?
Labels

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

Default—
class?
string
Default—

Composition

Choose one loading primitive for the amount of progress information the agent can truthfully expose.

Message
└── MessageContent
    ├── ThinkingShimmer
    ├── AgentProgress
    └── ReasoningText

Note: Agent Activity takes over once structured execution events exist. Todo List shows durable progress when a plan becomes available. Streaming Response replaces loading once answer content begins arriving.

How it works

An agent loading state should communicate ongoing work without inventing progress. Choose the smallest signal that matches what the system actually knows and keep its language stable while work continues.

Also on React Native. Shimmers, cycling reasoning text and a progress timer.(opens in a new tab)

Updated