BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/godui/agent-timeline

Agent Timeline

godui/agent-timeline
FreeComponent

A vertical timeline of agent steps with live status, a spring-filled connector, and collapsible reasoning or tool-output bodies that morph open.

Install it

npx shadcn@latest add https://godui.design/r/agent-timeline.json

Source

packages/components/src/agent-timeline/agent-timeline.tsxgodui.design/r/agent-timeline.json · first 6 KB
1"use client";
2
3import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
4import * as React from "react";
5
6export type StepStatus = "pending" | "running" | "success" | "error";
7
8export type AgentTimelineProps = React.HTMLAttributes<HTMLOListElement>;
9
10const AgentTimeline = React.forwardRef<HTMLOListElement, AgentTimelineProps>(
11 ({ className, children, ...props }, ref) => (
12 <ol
13 ref={ref}
14 data-slot="agent-timeline"
15 className={`flex flex-col ${className ?? ""}`}
16 {...props}
17 >
18 {children}
19 </ol>
20 ),
21);
22AgentTimeline.displayName = "AgentTimeline";
23
24export type AgentStepProps = Omit<
25 React.HTMLAttributes<HTMLLIElement>,
26 "title"
27> & {
28 status?: StepStatus;
29 title: React.ReactNode;
30 /** Optional sub-label (tool name, duration, …). */
31 meta?: React.ReactNode;
32 /** Collapsible body (reasoning text, tool I/O). */
33 children?: React.ReactNode;
34 defaultOpen?: boolean;
35 /** Hide the connector below this step (use on the last item). */
36 last?: boolean;
37};
38
39const STATUS_RING: Record<StepStatus, string> = {
40 pending: "border-border bg-background text-muted-foreground",
41 running: "border-primary bg-primary/10 text-primary",
42 success: "border-primary bg-primary text-primary-foreground",
43 error: "border-destructive bg-destructive text-white",
44};
45
46const CONNECTOR_FILL: Record<StepStatus, string> = {
47 pending: "bg-border",
48 running: "bg-gradient-to-b from-primary to-border",
49 success: "bg-primary",
50 error: "bg-destructive",
51};
52
53const AgentStep = React.forwardRef<HTMLLIElement, AgentStepProps>(
54 (
55 {
56 status = "pending",
57 title,
58 meta,
59 children,
60 defaultOpen = false,
61 last = false,
62 className,
63 ...props
64 },
65 ref,
66 ) => {
67 const reduce = useReducedMotion();
68 const [open, setOpen] = React.useState(defaultOpen);
69 const hasBody = Boolean(children);
70
71 return (
72 <li
73 ref={ref}
74 data-slot="agent-step"
75 data-status={status}
76 className={`relative flex gap-3 pb-2 ${className ?? ""}`}
77 {...props}
78 >
79 {/* Rail */}
80 <div className="relative flex flex-col items-center">
81 <span
82 className={`relative z-raised flex size-6 shrink-0 items-center justify-center rounded-full border ${STATUS_RING[status]} transition-colors`}
83 >
84 {status === "running" ? (
85// … truncated

What it pulls in

npm packages

  • framer-motion

Other registry items

  • @godui/godui-theme

Files it writes

  • packages/components/src/agent-timeline/agent-timeline.tsx

Facts

Registry
godui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

godui.design LucasBassetti/godui on GitHub Raw registry item This item as JSON

More from godui

All 105 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiongoduiComponentsFree1 dep
Agent Flowagent-flowgoduiComponentsFree1 dep
Animated Beamanimated-beamgoduiComponentsFree1 dep
Animated Testimonialsanimated-testimonialsgoduiComponentsFree1 dep
Animated Tooltipanimated-tooltipgoduiComponentsFree1 dep
App Showcaseapp-showcasegoduiComponentsFree1 dep
Aurora Textaurora-textgoduiComponentsFreeno deps
Avatar Groupavatar-groupgoduiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex