Skip to Content
UI Kit
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.

Open preview
Loading Handoff Swimlanes…

Usage

import { HandoffSwimlanes } from "ui-kit/components/handoff-swimlanes";

Props

PropTypeDefaultDescription
lanes*SwimLane[]——
tasks*SwimTask[]——
titlestring"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——
laneHeightnumber—Height of a lane in px – 60 by default, 48 at least; lower it when the diagram shares the page with more
fitHeightnumber—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
classNamestring——

On this page