Block
Sequence Flow
Vertical flow: enrollment → step cards → wait pills on a 1px connector → add step.
react-aria-componentslucide-react
Preview
Series B — VP Sales
3 steps · automatic
- 128 prospects enrolled
- Step 1
Email · Intro
Day 1 · Automatic
Quick question about {{company}}’s SDR ramp
Hi {{first_name}}, congrats on the {{recent_signal}}…
- Sent
- 128
- Opened
- 64%
- Replied
- 7.8%
- Wait 2 days
- Step 2
LinkedIn · Connection request
Day 3 · Manual task
Connection note
Hi {{first_name}} — saw {{company}} is hiring SDRs…
- Wait 3 days
- Step 3
Call · Follow-up call
Day 6 · Manual task
Reference the case study and ask about ramp time.
import { SequenceFlow } from "@/components/blocks/sequence-flow";
export default function Example() {
return (
<SequenceFlow
className="w-full max-w-2xl"
steps={[
{
channel: "email",
name: "Intro",
timing: "Day 1 · Automatic",
subject: "Quick question about {{company}}’s SDR ramp",
preview: "Hi {{first_name}}, congrats on the {{recent_signal}}…",
stats: [
{ label: "Sent", value: 128 },
{ label: "Opened", value: "64%" },
{ label: "Replied", value: "7.8%" },
],
},
{
waitBefore: "Wait 2 days",
channel: "linkedin",
name: "Connection request",
timing: "Day 3 · Manual task",
subject: "Connection note",
preview: "Hi {{first_name}} — saw {{company}} is hiring SDRs…",
},
{
waitBefore: "Wait 3 days",
channel: "call",
name: "Follow-up call",
timing: "Day 6 · Manual task",
preview: "Reference the case study and ask about ramp time.",
},
]}
/>
);
}Installation
Components are copied into your project — no runtime package.
Install the following dependencies:
terminalnpm install react-aria-components lucide-reactCreate a
sequence-flow.tsxfile and paste the following code into it.src/components/blocks/sequence-flow.tsximport { Plus, Send, Users } from "lucide-react"; import { Fragment, type ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { Card, CardBody, CardHeader, IconTile } from "@/components/ui/card"; import { SequenceStep, type SequenceStepProps, SequenceWait } from "@/components/ui/sequence-step"; export interface SequenceFlowItem extends Omit<SequenceStepProps, "step" | "className"> { /** Wait shown on the connector before this step. */ waitBefore?: string; } const Connector = () => <span aria-hidden className="mx-auto block h-4 w-px bg-line-strong" />; /** A vertical flow, not a node graph: enrollment → step cards → wait pills on a 1px connector → add step. */ export function SequenceFlow({ name = "Series B — VP Sales", description, enrollment = "128 prospects enrolled", steps, actions = <Button size="sm">Edit sequence</Button>, className, }: { name?: ReactNode; /** Defaults to the step count. */ description?: ReactNode; enrollment?: string; steps: SequenceFlowItem[]; actions?: ReactNode; className?: string; }) { return ( <Card className={className}> <CardHeader icon={ <IconTile tone="rose"> <Send /> </IconTile> } title={name} description={description ?? `${steps.length} steps · automatic`} actions={actions} /> {/* Subtle panel so the white step cards stand out. */} <CardBody className="bg-subtle px-4 py-6"> <ol className="mx-auto flex w-full max-w-xl flex-col"> <li className="flex justify-center"> <span className="inline-flex h-8 items-center gap-2 rounded-full bg-accent-soft px-3 text-sm font-medium text-accent-text"> <Users aria-hidden className="size-3.5" /> {enrollment} </span> </li> {steps.map(({ waitBefore, ...step }, i) => ( <Fragment key={i}> <li aria-hidden> <Connector /> </li> {waitBefore && ( <> <li className="flex justify-center"> <SequenceWait>{waitBefore}</SequenceWait> </li> <li aria-hidden> <Connector /> </li> </> )} <li> <SequenceStep step={i + 1} {...step} /> </li> </Fragment> ))} <li aria-hidden> <Connector /> </li> <li className="flex justify-center"> <button className="inline-flex h-9 items-center gap-1.5 rounded-md border border-dashed border-line-strong bg-surface px-3 text-base text-fg-secondary outline-none hover:border-fg-disabled hover:text-fg focus-visible:shadow-focus"> <Plus className="size-3.5" /> Add step </button> </li> </ol> </CardBody> </Card> ); }Add the theme tokens and the
cxhelper from Installation if you haven’t yet, then update the import paths to match your project setup.