Agent status
Shows the current step of an agent and its state.
agent-status-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
States
Screen readers announce each change.
agent-status-states-demo.tsx
API reference
- state: "thinking" | "working" | "complete" | "error"Required
- Sets the icon and the state text. Thinking and working animate unless reduced motion is on.
- label: stringRequired
- The current step. Screen readers announce changes.
- detail: string
- Text below the label.