Fan out merge (Pro)
ProIncluded in $99Parallel work, drawn as it runs: lanes branch out as tasks start and run on to the join as they finish.
On this page
ProOne search splits into three lanes; each line draws out as its task starts and runs on to the join when it finishes, then they merge.
The call at the top splits into lanes that branch out side by side, one per parallel task, each line drawing out to its task as it starts. When a task finishes its line runs on down to the join; when the last one arrives the lanes merge into a single result. You can see at a glance which branch is holding the rest up.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { FanOutMerge } from "@/components/ui/chatcn/pro/fan-out-merge"
<FanOutMerge title="Search 3 sources in parallel" lanes={lanes} result="Found the cause in auth/refresh.ts" />Props
| Prop | Type | Notes |
|---|---|---|
title | string | The call that fans out |
lanes | { id, label, detail?, status }[] | Status as in Run check |
result | string | Once every lane is done |
Accessibility
- The end node is a
role="status": Waiting for 2 of 3, then the result.
Motion
- Curves are measured from the boxes and drawn with
pathLength, 420 ms each. Reduced motion: lines appear.