State: Notes

One-line and block notes attached to a state.

state-notes.mmd
stateDiagram-v2
  [*] --> Active
  note right of Active : this is a note
  Active --> Idle
  note left of Idle
    a note
    over two lines
  end note
  Idle --> [*]
Output
State diagram, Zombie Mermaid Active this is a note Idle a noteover two lines

More State diagram examples