AsterUIDocsv1.0.2

Docs / Component reference

WorkflowGraph

Follow a sequence of steps and inspect the state of each one. The application supplies the execution data.

Workflow graph example

Install

sh
npx @fierst/ui@1.0.2 add workflow-graph

Registry dependencies: theme, icon, badge. Package dependencies: @lucide/icons.

Exports from ./ui/workflow-graph: WorkflowNode, WorkflowGraph.

Download the registry source for workflow-graph 1.0.2.

API contracts

ts
export interface WorkflowNode {
  id: string;
  label: string;
  detail?: string;
  status: 'pending' | 'running' | 'waiting' | 'done' | 'replayed' | 'failed';
}

export function WorkflowGraph({
  nodes,
  class: extraClass,
}: {
  nodes: readonly WorkflowNode[];
  class?: string;
})