Flow Diagram
Nodes, curved wires and packets that travel along them, built from a list of nodes and links, with a tall layout for phones.
pixikit.com/docs/blocks/diagrams/flow
Customize
Packet color
Speed1.00x
Play on
Layout
Node width168
Column gap64
Row gap24
Props
18| Name | Type | Default | Description |
|---|---|---|---|
title | string | "How a request travels" | The heading above the diagram. Leave empty for none. |
description | string | "Every hop from the people using your product to the data behind it." | The line under the heading. Leave empty for none. |
nodes | FlowDiagramNode[] | None | The boxes, each at a column (x) and row (y) of the wide layout. Unset shows the built-in example. |
links | FlowDiagramLink[] | None | The wires between nodes, by id. |
groups | FlowDiagramGroup[] | None | Frames drawn around sets of nodes. |
nodeTitles | string[] | ["Your users", "Gateway", "App", "App", "Database"] | The built-in example's node titles, in order (used when nodes is not set). |
nodeSubtitles | string[] | ["web and mobile", "front door", "instance 1", "instance 2", "primary"] | The built-in example's node subtitles, in order (used when nodes is not set). |
linkLabel | string | "HTTPS" | The built-in example's label on its first wire (used when links is not set). |
groupTitle | string | "Your workspace" | The built-in example's frame title (used when groups is not set). |
packetColor | string | "#7c3aed" | The packets, the frames and the highlighted nodes. |
speed | number | 1 | How fast the packets travel; 1 is the normal pace. |
playOn | "view" | "hover" | "always" | "view" | When the packets run: while on screen, while pointed at (on screen on touch screens), or always. |
layout | "auto" | "wide" | "tall" | "auto" | Wide left to right, tall top to bottom, or auto: tall when the block is narrower than 672px. |
nodeWidth | number | 168 | A node's width in the wide layout, in diagram units. |
columnGap | number | 64 | The space between columns in the wide layout. |
rowGap | number | 24 | The space between rows. |
ariaLabel | string | None | What screen readers announce. Defaults to a sentence built from the links. |
className | string | None |