Components (172)
Token Flow
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Token Flow…
Usage
import { TokenFlow } from "ui-kit/components/token-flow";Props
| Prop | Type | Default | Description |
|---|---|---|---|
sources* | TokenSource[] | — | — |
models* | TokenModel[] | — | — |
outcomes* | TokenOutcome[] | — | — |
links* | TokenLink[] | — | — |
previous | { tokens?: number; cost?: number; } | — | The last run's totals – the head shows how this one compares (once it's done) |
unit | TokenFlowUnit | — | Tokens or $ – controlled; leave it out and the switch keeps its own |
defaultUnit | TokenFlowUnit | "tokens" | — |
onUnitChange | (unit: TokenFlowUnit) => void | — | — |
streaming | boolean | false | The run is still going – more light runs along the bands and the pixel mark twinkles |
title | string | "Token flow" | — |
height | number | 400 | The diagram's height in px – it grows when a column has more cards than fit (default 400) |
className | string | — | — |