Components (172)
Handoff Swimlanes
Handoff Swimlanes — who does what in an agent run, and where the work changes hands, in a single self-contained file.
Loading Handoff Swimlanes…
Usage
import { HandoffSwimlanes } from "ui-kit/components/handoff-swimlanes";Props
| Prop | Type | Default | Description |
|---|---|---|---|
lanes* | SwimLane[] | — | — |
tasks* | SwimTask[] | — | — |
title | string | "Handoffs" | — |
onSelect | (task: SwimTask | null) => void | — | A click or Enter on a task – its card opens; null when it closes |
onApprove | (task: SwimTask) => void | — | Shows Approve and Reject in the card of a gate that's waiting |
onReject | (task: SwimTask) => void | — | — |
laneHeight | number | — | Height of a lane in px – 60 by default, 48 at least; lower it when the diagram shares the page with more |
fitHeight | number | — | Room in px the diagram may fill in height – when the width alone would scale it down, it grows back into this room (up to its own size) and scrolls sideways instead |
className | string | — | — |