sigilUI

Stream Flow Diagram

A token-stream visualization showing a source emitting tokens with an optional aggregated output.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { StreamFlowDiagram } from "@sigil-ui/components";

Usage

<StreamFlowDiagram
  source={{ label: "LLM" }}
  tokens={["Hello", "World", "!"]}
  output="Hello World!"
/>

Without output

<StreamFlowDiagram
  source={{ label: "Tokenizer", icon: <CpuIcon /> }}
  tokens={["The", "quick", "brown", "fox"]}
/>

Props

PropTypeDefaultDescription
source{ label, icon? }—Source node (required)
tokensstring[]["Hello", "World", "!"]Array of token strings to display
outputstring—Aggregated output text
classNamestring—Additional CSS classes

Plus all standard <div> HTML attributes.