Groups
Groups are visual containers that organize related nodes together. They render as labeled boxes on the canvas and can be collapsed to hide their contents.
Syntax
Section titled “Syntax”group id="<id>" title="<title>" [icon="<url>"] [color="<hex>"] { # child nodes, groups, or tables}Attributes
Section titled “Attributes”| Attribute | Required | Description |
|---|---|---|
id |
Yes | Unique identifier. |
title |
No | Label displayed on the group header. |
icon |
No | URL to an icon image. |
color |
No | Border color as a hex code. |
Basic Group
Section titled “Basic Group”group id="backend" title="Backend Services" { node id="api" title="API Server" node id="worker" title="Background Worker"}Group with Icon
Section titled “Group with Icon”group id="frontend" title="Client Apps" icon="https://cdn.simpleicons.org/googlechrome" { node id="web" title="Web App" shape="browser" node id="mobile" title="Mobile App" shape="mobile"}Nested Groups
Section titled “Nested Groups”Groups can contain other groups for multi-level organization:
group id="platform" title="Platform" { group id="services" title="Microservices" { node id="users" title="User Service" node id="orders" title="Order Service" } group id="data" title="Data Layer" { node id="postgres" title="PostgreSQL" shape="cylinder" node id="redis" title="Redis" shape="cylinder" }}Collapsing
Section titled “Collapsing”On the interactive canvas, groups can be collapsed by clicking the collapse toggle on the group header. This hides all child elements and shrinks the group to a compact representation, useful for managing complex diagrams.
Groups and Edges
Section titled “Groups and Edges”Edges can connect nodes inside groups to nodes outside or inside other groups. The layout engine routes edges around group boundaries automatically.
group id="frontend" title="Frontend" { node id="web" title="Web App"}group id="backend" title="Backend" { node id="api" title="API"}
edge from="web" to="api" label="HTTPS"