Flow
Implemented LayoutDirected diagrams with branches, SVG connectors, custom anchors and responsive local scrolling.
Kumo reference: kumo-ui.com/components/flow/
Presentation commands show demo feedback. Read the interaction guide to connect real actions.
Sequential flow
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" nodes=audit_flow_nodes edges=audit_flow_edges only %}
Parallel branches
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" columns=audit_flow_columns edges=audit_flow_parallel_edges only %}
Vertical flow
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" nodes=audit_flow_nodes edges=audit_flow_edges direction="vertical" only %}
Vertical parallel flow
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" columns=audit_flow_columns edges=audit_flow_parallel_edges direction="vertical" only %}
Custom node content
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" nodes=audit_flow_custom edges=audit_flow_edges only %}
Centered branches
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" columns=audit_flow_columns edges=audit_flow_parallel_edges align="center" only %}
Complex flow
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Multi-stage request processing" columns=audit_flow_complex edges=audit_flow_complex_edges only %}
Custom anchors
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" nodes=audit_flow_nodes edges=audit_flow_anchors only %}
Scrollable large diagram
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" nodes=audit_flow_many edges=audit_flow_many_edges only %}
Disabled node
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" nodes=audit_flow_disabled edges=audit_flow_edges only %}
End aligned branches
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Request processing" columns=audit_flow_columns edges=audit_flow_parallel_edges align="end" only %}
Nested branch lists
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with label="Nested branch sequences" columns=audit_flow_nested edges=audit_flow_nested_edges only %}
Dot and tall nodes
Show template
{% load wdj %}
{% include "wdj/components/flow.html" with nodes=audit_flow_shapes edges=audit_flow_edges label="Custom node shapes" only %}
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | unset | Stable unique DOM ID; important for HTMX targets and focus restoration. |
| nodes | list[dict] | unset | Flow nodes: key, label, optional description/icon/disabled/href. |
| columns | list[dict] | unset | Flow: list of {nodes: [...]}; Table: key/label/width/align/sortable/mono/nowrap/hidden_label, optional sticky='left' or 'right'. |
| edges | list[dict] | unset | Flow connections: source/target keys, optional source_anchor/target_anchor (left/right/top/bottom). |
| direction | string | unset | Direction; pass the documented value shown in the examples. |
| align | string | start | Align; pass the documented value shown in the examples. |
| label | string | unset | Visible accessible label. Supply an explicit aria-label via attrs when the control is bare. |
| slot | string / HTML slot | unset | Rich HTML supplied by the wdj_component block tag, rendered in an isolated context. |
| attrs | dict | {} | Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only. |
| class | string | "" | Class; pass the documented value shown in the examples. |