@redrob-labs/ui v1.0.2 · Redrob Group Design System 2026

Diagram

Foundations · src/components/Diagram/Diagram.tsx

A process, drawn as numbered steps, saying who did each one.

Two lanes at most, and only the two that matter: who acted. A third lane is an org chart wearing a process diagram's clothes, which is why laneLabels renames the two rather than adding to them.

The steps are an ordered list, so the order survives with the stylesheet switched off and a screen reader announces it as a sequence rather than a picture.

Import

import { Diagram } from '@redrob-labs/ui';

Rendered

The design system's own preview case, run against this package's build. The parity gate compares this rendering to the reference bundle's.

Props

PropTypeNotes
steps DiagramStep[]
title React.ReactNode Names the diagram and becomes its accessible label.
lanes boolean Split the steps into a person lane and a machine lane.
laneLabels string[] Rename the two lanes. Two entries; a third is ignored because there is no third lane.
orientation 'flow' | 'stack' stack reads down the page instead of across it. For narrow columns.
source React.ReactNode Where the steps came from. Printed under the diagram.
className string

Exported types

DiagramActor, DiagramStep