nextui.dev
Home
Docs
Saved
Pricing
Components37
  • Forms & inputs7
  • Cards13
  • Buttons, badges & avatars8
  • Feedback & display6
  • Effects3
Agents17
  • Chat inputNew
  • Task checklistNew
  • ReasoningNew
  • Tool callNew
  • Tool approvalNew
  • SourcesNew
  • Agent timelineNew
  • Artifact panelNew
  • Streaming messageNew
  • Conversation shellNew
  • Voice agentNew
  • Voice orbNew
  • Thinking ring
  • Thinking waveNew
  • Thinking sparkle
  • Thinking bot
  • Prompt deckNew
Blocks20
  • Agent chatNew
  • Pill heroNew
  • Grid hero
  • Moodboard generatorNew
  • Waitlist heroNew
  • Intro bannerNew
  • Creative home heroNew
  • Chat heroNew
  • App shelfNew
  • Usage card
  • Design resultsNew
  • Pricing tiers
  • Dashboard home
  • The shiftNew
  • Launch perksNew
  • Testimonials
  • Quote
  • Team
  • Leads tableNew
  • Sign in
Pages10
  • ASCII workspace$49
  • CRM overviewNew
  • Marketing dashboardNew
  • Developer portfolio$49
  • Particle landing$49
  • Particle story$49
  • Statement converter$49
  • AI photo studio$49
  • Group card launch$49
  • Month-end storyNew
Themes9
  • Default
  • Ember
  • Ocean
  • Forest
  • Grape
  • Rose
  • Amber
  • Clay
  • Brutal
Upgrade
nextui.dev

nextui components, blocks and themes you install with one command.

Product

  • Components
  • Blocks
  • Themes
  • Pricing

Resources

  • Docs
  • Roadmap
  • GitHub

Legal

  • License
  • Privacy
  • Terms
  • Refunds

nextUI

[ 200 OK ] · nextUI

© 2026 NEXTUI • All rights reserved.

Upgrade
ComponentsAI & agentsAgent timeline
Copy promptCopy prompt

Customize

Header label

Footer line once the run is done, e.g. "Done in 7s"

Play a scripted run on a loop while on screen, for demos

JSX · copied with Copy prompt

<AgentTimeline autoPlay />

Agent timelineNew

Vertical log of what an AI agent did, one row per step: an icon for the kind of step (think, search, read, tool, write), the title, a detail line, live running state and a done summary.

Installation

Set your access key from API keys as NEXTUI_TOKEN in .env.local and add the @nextui namespace below to components.json once. Then every item installs by name. Each install counts as a copy on a free account.

$pnpm dlx shadcn@latest add @nextui/agent-timeline
1{
2 "registries": {
3 "@nextui": {
4 "url": "https://nextui.dev/r/{name}.json",
5 "headers": { "Authorization": "Bearer ${NEXTUI_TOKEN}" }
6 }
7 }
8}

Usage

1"use client";
2
3import type { UIMessage } from "ai";
4import { AgentTimeline, type TimelineEvent } from "@/components/nextui/agent-timeline";
5
6// Turn the tool parts of one assistant turn into timeline rows.
7export function TurnActivity({ message }: { message: UIMessage }) {
8 const events: TimelineEvent[] = message.parts.flatMap((part): TimelineEvent[] => {
9 if (part.type === "reasoning") {
10 return [{ kind: "think", title: "Thought it through", status: part.state === "streaming" ? "running" : "done" }];
11 }
12 if (part.type.startsWith("tool-") && "state" in part) {
13 const name = part.type.slice(5);
14 const status = part.state === "output-error" ? "error" : part.state === "output-available" ? "done" : "running";
15 return [{ kind: name.startsWith("search") ? "search" : "tool", title: name, status }];
16 }
17 return [];
18 });
19
20 return <AgentTimeline events={events} />;
21}

API reference

Edit props live in the preview above, or see all 5 props
PropTypeDefaultDescription
titleReactNode"Agent activity"Header label
eventsTimelineEvent[]–Rows, oldest first: { kind, title, detail?, meta?, status? }. kind is think, search, read, tool, write, message or error
summaryReactNode–Footer line once the run is done, e.g. "Done in 7s"
autoPlaybooleanfalsePlay a scripted run on a loop while on screen, for demos
classNamestring–Extra classes on the wrapper

Related

All components

Chat inputNew

Task checklistNew

ReasoningNew

Sign in to see the code

Preview it freely. A free account copies code and prompts a few times a day.

Sign in