Skip to Content
Kokonut UI

AI-03AIUpdated, November 16, 2026

AI State Loading

Agent progress as a list of steps with a live log, elapsed time and a summary when done.

Install with
lucide-react, motion

PROSlash Command Menu and more like it are in Kokonut UI Pro

Installation

AI State Loading is a free, open-source React component in the Kokonut UI AI collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/ai-loading.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/ai-loading

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/ai-loading.tsx.

npm install lucide-react motion

Usage

import AILoadingState from "@/components/kokonutui/ai-loading";

export default function Example() {
  return <AILoadingState />;
}

Props

steps
AgentStep[]

The agent's steps, in order. Update them as work progresses. When omitted, a demo run plays on a loop.

collapseWhenDone
booleanDefault true

Collapse the list once every step is done. Defaults to true.

className
string

Extra classes for the root element.

AgentStep

idrequired
string
labelrequired
string
statusrequired
AgentStepStatus
detail
string[]

Log lines for the step. The running step shows the latest ones.

AgentStepStatus

type AgentStepStatus = "pending" | "running" | "done" | "error";

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.