@hanzo/ui

Progress

import { ProgressBlock, steps } from '@hanzo/ui/agents'

No examples yet.

Types

export type StepKind = 'think' | 'search' | 'read' | 'run' | 'write' | 'error' | 'step'
export interface Step {
  key: string
  kind: StepKind
  /** The claim — one line, always visible. */
  label: string
  /** The evidence, one line each. Absent means nothing to open. */
  detail?: string[]
  /** Open on first render — for the step being worked on right now. */
  open?: boolean
}
export interface ProgressBlockProps extends Col {
  steps: Step[]
  /** The work has stopped. Draws the tick. */
  done?: boolean
  doneLabel?: string
  /** The agent's message, at full size under the steps. */
  children?: ReactNode
}
export interface Event {
  seq?: number
  id?: string
  kind?: string
  actor?: string
  payload?: unknown
}

Exports

ProgressBlockstepstype Eventtype ProgressBlockPropstype Steptype StepKind