Skip to Content
UI Kit
Components (172)

Token Flow

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Token Flow…

Usage

import { TokenFlow } from "ui-kit/components/token-flow";

Props

PropTypeDefaultDescription
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)
unitTokenFlowUnit—Tokens or $ – controlled; leave it out and the switch keeps its own
defaultUnitTokenFlowUnit"tokens"—
onUnitChange(unit: TokenFlowUnit) => void——
streamingbooleanfalseThe run is still going – more light runs along the bands and the pixel mark twinkles
titlestring"Token flow"—
heightnumber400The diagram's height in px – it grows when a column has more cards than fit (default 400)
classNamestring——

On this page