mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 18:30:10 +02:00
Update stateDiagram.md
Add explanation for naming a composite state
This commit is contained in:

committed by
GitHub

parent
8d9cb09261
commit
718811be9c
@@ -98,7 +98,7 @@ In a real world use of state diagrams you often end up with diagrams that are mu
|
|||||||
have several internal states. These are called composite states in this terminology.
|
have several internal states. These are called composite states in this terminology.
|
||||||
|
|
||||||
In order to define a composite state you need to use the state keyword followed by an id and the body of the composite
|
In order to define a composite state you need to use the state keyword followed by an id and the body of the composite
|
||||||
state between \{\}. See the example below:
|
state between \{\}. You can name a composite state on a seperate line just like a simple state. See the example below:
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
stateDiagram-v2
|
stateDiagram-v2
|
||||||
|
Reference in New Issue
Block a user