A state diagram, declared with "stateDiagram-v2"
Drawn

The Mermaid
stateDiagram-v2
Draft --> Submitted
Submitted --> Approved
The library / State diagrams
Read into the same boxes and links as a flowchart, so it is placed by the same rules and steps through the same way.
27 samples: 19 drawn as written, 8 drawn less something. Mermaid’s side is mermaid-cli 12.2.0 as it comes, on white. Merlive’s is 0.6.1 in its own look. What is read of a state diagram.
Drawn

stateDiagram-v2
Draft --> Submitted
Submitted --> Approved
Drawn

stateDiagram
Draft --> Submitted
Submitted --> Approved
Drawn

stateDiagram-v2
Draft
Submitted
Drawn

stateDiagram-v2
state "Waiting for a manager" as Submitted
Draft --> Submitted
Drawn

stateDiagram-v2
Submitted : Waiting for a manager
Draft --> Submitted
Drawn

stateDiagram-v2
Submitted : Waiting
Submitted : for a manager
Draft --> Submitted
Drawn

stateDiagram-v2
OnHold : On hold with the supplier
Draft --> OnHold
OnHold --> Sent
Drawn

stateDiagram-v2
Draft --> Submitted
Submitted --> Approved
Submitted --> Draft
Drawn

stateDiagram-v2
Draft --> Submitted : submit
Submitted --> Approved: approve
Submitted --> Draft : send back
Drawn

stateDiagram-v2
Connecting --> Connecting : try again
Connecting --> Open : answered
Drawn, less something Where it starts and where it ends are pills that say so, not dots

stateDiagram-v2
[*] --> Draft
Draft --> Delivered
Draft --> Cancelled
Delivered --> [*]
Cancelled --> [*]
Drawn, less something A transition to a composite state is drawn to where it starts inside, and one from it from where it ends

stateDiagram-v2
[*] --> Draft
Draft --> Review
state Review {
[*] --> Screening
Screening --> Decision
Decision --> [*]
}
Review --> Published
Drawn, less something A transition to a composite state is drawn to where it starts inside, and one from it from where it ends

stateDiagram-v2
Checks : Checks before sending
state Checks {
Credit --> Stock
}
Draft --> Checks
Drawn

stateDiagram-v2
[*] --> Order
state Order {
[*] --> Open
state Open {
[*] --> Picking
Picking --> Packing
}
Open --> Closed
}
Drawn, less something A transition to a composite state is drawn to where it starts inside, and one from it from where it ends

stateDiagram-v2
[*] --> Buying
Buying --> Paying
state Buying {
Quoted --> Ordered
}
state Paying {
Invoiced --> Paid
}
Paying --> [*]
Drawn, less something A choice is a decision the size of every box, with its name in it; Mermaid draws a small diamond with none

stateDiagram-v2
state enough <<choice>>
Checked --> enough
enough --> Approved : in budget
enough --> Held : over budget
Drawn

stateDiagram-v2
state split <<fork>>
state together <<join>>
Approved --> split
split --> Picking
split --> Invoicing
Picking --> together
Invoicing --> together
together --> Sent
Drawn, less something A note is what a reader sees on picking its box in the page, and is printed with the page; it is not drawn beside the box, and a still picture does not carry it

stateDiagram-v2
Draft --> Sent
note right of Draft : Only its author sees it.
note left of Sent : Sent by email.
Drawn, less something A note is what a reader sees on picking its box in the page, and is printed with the page; it is not drawn beside the box, and a still picture does not carry it

stateDiagram-v2
Draft --> Sent
note right of Sent
Sent to the supplier
by email.
end note
Drawn

stateDiagram-v2
[*] --> Sending
state Sending {
[*] --> Picking
Picking --> Packed : pack
--
[*] --> Invoicing
Invoicing --> Paid : pay
}
Drawn

stateDiagram-v2
direction LR
Draft --> Submitted
Submitted --> Approved
Drawn

stateDiagram-v2
direction LR
Draft --> Checks
state Checks {
direction TB
Credit --> Stock
}
Checks --> Sent
Drawn

stateDiagram-v2
%% the happy path
Draft --> Submitted %% sent by the buyer
Submitted --> Approved
Drawn

stateDiagram-v2
classDef stopped stroke:#c62828,stroke-width:2px
Draft --> Held
Held --> Cancelled
class Held, Cancelled stopped
Drawn

stateDiagram-v2
classDef fresh stroke:#2e7d32
classDef stopped stroke:#c62828
Draft:::fresh --> Held:::stopped
Drawn

stateDiagram-v2
accTitle: An order
accDescr: From draft to sent
Draft --> Sent
Drawn, less something Mermaid's own settings are read past: the look is the design's

---
title: An order
config:
theme: default
look: classic
layout: dagre
---
stateDiagram-v2
Draft --> Sent