Ask Your Question
2

How can I include additional boxes or containers in a mermaid sequence diagram?

asked 2023-06-27 10:36:19 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-27 10:57:02 +0000

pufferfish gravatar image

To include additional boxes or containers in a mermaid sequence diagram, you can use the participant keyword followed by the name of the box or container that you want to add. For example:

sequenceDiagram
    participant User
    participant "Web Application"
    participant "Database Server"
    User->>"Web Application": Send data
    "Web Application"->>"Database Server": Fetch data

In this example, we have added two additional containers: "Web Application" and "Database Server". These containers are represented by rectangular boxes in the diagram. You can customize the appearance of these boxes using CSS styles or mermaid configuration options.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-27 10:36:19 +0000

Seen: 10 times

Last updated: Jun 27 '23