All diagram types Open editor

merIDK / Diagram types / Flowchart icons & animation

Mermaid flowchart icons & animation: example and syntax

Mermaid 11 added a long list of named shapes, icon nodes and animated edges. This example uses Iconify icon packs (mdi and logos), document and storage shapes, and edges that animate to show data moving.

Open this example in the editor

Example code

flowchart LR
    user@{ icon: "mdi:account", form: "circle", label: "Customer", pos: "b" }
    api@{ shape: rounded, label: "API Gateway" }
    fn@{ icon: "logos:aws-lambda", form: "square", label: "Lambda" }
    docs@{ shape: docs, label: "Invoices" }
    db@{ shape: cyl, label: "Orders DB" }
    store@{ shape: das, label: "Archive" }
    user e1@--> api
    api e2@==> fn
    fn --> db
    fn --> docs
    db -.-> store
    e1@{ animate: true }
    e2@{ animate: true }

Result

flowchart LR
    user@{ icon: "mdi:account", form: "circle", label: "Customer", pos: "b" }
    api@{ shape: rounded, label: "API Gateway" }
    fn@{ icon: "logos:aws-lambda", form: "square", label: "Lambda" }
    docs@{ shape: docs, label: "Invoices" }
    db@{ shape: cyl, label: "Orders DB" }
    store@{ shape: das, label: "Archive" }
    user e1@--> api
    api e2@==> fn
    fn --> db
    fn --> docs
    db -.-> store
    e1@{ animate: true }
    e2@{ animate: true }

Syntax quick reference

How to use it

  1. Open the example in the editor, or paste your own Mermaid code.
  2. Edit the code on the left. The preview updates as you type, and errors point to the line.
  3. Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.

More diagram types