@hanzo/ui

Transcript

import { Transcript, fold } from '@hanzo/ui/agents'

No examples yet.

Types

export interface Turn {
  kind?: string
  actor?: string
  seq?: number
  id?: string
  text: string
}
export interface Block {
  key: string
  kind: string
  actor?: string
  text: string
}
export interface TranscriptProps extends Scroll {
  blocks: Block[]
  /** Keep the newest turn in view as the run streams. */
  follow?: boolean
  /** Drawn above the blocks — a status line, a turn count. */
  header?: ReactNode
  empty?: ReactNode
}

Exports

Transcriptfoldtype Blocktype TranscriptPropstype Turn