Components (172)
Agent Flame Graph
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Agent Flame Graph…
Usage
import { AgentFlameGraph } from "ui-kit/components/agent-flame-graph";Props
| Prop | Type | Default | Description |
|---|---|---|---|
root* | FlameNode | — | — |
now | number | — | The clock, in ms from the start of the run – e.g. a faster one for a demo |
startedAt | number | — | When the run started (epoch ms) – without now, the component keeps its own clock from here while it runs |
metric | FlameMetric | — | What sizes the blocks – controlled |
defaultMetric | FlameMetric | "time" | — |
onMetricChange | (metric: FlameMetric) => void | — | — |
zoomId | string | null | — | The id of the block that fills the width – controlled, null for the whole run |
defaultZoomId | string | null | null | — |
onZoomChange | (id: string | null, node: FlameNode) => void | — | — |
query | string | — | The search – controlled |
defaultQuery | string | "" | — |
onQueryChange | (query: string) => void | — | — |
onRetry | (block: FlameNode) => void | — | Offers Retry on failed blocks – in their card, or R on a focused failed block |
title | string | "Flame graph" | — |
rootLabel | string | "Run" | The first crumb of the breadcrumb (default "Run") |
formatCost | (amount: number) => string | dollars | Formats every cost – defaults to dollars, e.g. "$0.042" |
className | string | — | — |