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

Menu

Agent Loading States

Reasoning Text

ReasoningText.vue
CascadeThinking
SwapThinking
ScrambleThinking

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/reasoning-text

Import the shared styles once in your application.

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

API Reference

phrases?
string[]

Phrases cycled through while the agent works.

Default—
variant?
"cascade" | "swap" | "scramble"

Animation used when the active phrase changes.

Defaultcascade
interval?
number

Milliseconds each phrase remains visible.

Default1800
shimmerDuration?
number

Seconds taken for one shimmer pass.

Default2.2
#indicator?
slot

Optional leading visual. Defaults to a terminal-style ASCII loader.

Default—
labels?
Labels

Override any built-in string, including the default phrases.

Default—
class?
string
Default—

Thinking Shimmer

ThinkingShimmer.vue
Thinking…

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/thinking-shimmer

Import the shared styles once in your application.

TSUsage
import ThinkingShimmer from '@/components/beui/effects/ThinkingShimmer.vue'
import '@/components/beui/styles.css'

API Reference

#default?
slot

Loading message shown to the user.

Default—
duration?
number

Seconds taken for one shimmer pass.

Default1.8
labels?
{ thinking?: string }

Override any built-in string.

Default—
class?
string
Default—
paused?
boolean
Default—

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