Skip to content

Icons

Attach an icon to a node, group, or table column to make its role easier to recognize. Use the inspector’s picker or provide an image URL.

In Edit mode, select the element and choose Choose icon in its inspector. Search the library and select a result. Library icons are embedded as SVG image data in the diagram source, so they do not need an external image request to render.

Use the picker when you want a portable icon without managing a separate image URL.

Choose Paste URL to use an image hosted elsewhere. Custom URLs must use HTTP or HTTPS and be accessible to viewers of the diagram.

You can also set the URL directly in source:

node id="web" title="Web app" icon="https://cdn.simpleicons.org/react" shape="browser"
node id="db" title="Postgres" icon="https://cdn.simpleicons.org/postgresql" shape="cylinder"

SVG images stay sharp when zoomed. PNG and JPEG images can also be used, but their quality depends on the original resolution.

The same icon attribute is available for groups and table columns:

group id="data" title="Data layer" icon="https://cdn.simpleicons.org/postgresql" {
node id="primary" title="Primary database" shape="cylinder"
}
table id="services" {
column id="web" title="Frontend" icon="https://cdn.simpleicons.org/react" {
Customer portal
Admin console
}
}

An external host can remove an icon, restrict requests, or change a URL. If an image stops loading, replace it in the inspector or use the picker.

Check contrast against the node’s fill. A dark icon on a dark background can appear missing even when it loaded successfully. Choose a suitable variant or adjust the fill so the icon remains visible.