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—

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