Thinking Indicator
Show that the agent is thinking before it answers.
Use a thinking indicator between sending a message and the first word of the reply. Its label shimmers, and three small dots flow after it.
Installation
npx shadcn@latest add @kind-ui/thinking-indicatorUsage
Label
Pass label to say what the agent is doing, like "Searching the docs". It shows before the dots and names the indicator, "Thinking" by default. The indicator is a polite status, so screen readers read a new label when it changes. The dots are hidden from them.
Motion
The label shimmers and the dots flow one after another. Under prefers-reduced-motion, or with motion="reduced" or "none", both hold still. The indicator takes no focus and has no keys.
API Reference
Prop
Type
Agent
An agent connected with createAgent sees the thinking indicator as a status named by its label. It has no actions of its own.
Runs in React and Web Components. On <kind-thinking-indicator>, label and motion are attributes of the same name, and the element fills in its label and dots when it has no children.