---json { "canonical": ":state-diagram", "description": "This article shows you how to create a state diagram.", "name": "State Diagram", "page_id": "99nb86cidzf65nzwsja29", "title": "How to create a state diagram with ComboStrap" } --- ====== ComboStrap Diagram - State Diagram ====== ===== About ===== The ''state-diagram'' component is a [[diagram|diagram component]] that permits to create ''state diagram''. ===== Example ===== * The markup ```dw stateDiagram-v2 direction LR [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*] ``` * The output: ===== Syntax ===== The syntax is based on the [[https://mermaid-js.github.io/mermaid/#/stateDiagram|State Diagram Mermaid Definition]] ... Mermaid State Diagram definition ... Mermaid offers a [[https://mermaid-js.github.io/mermaid-live-editor|live editor]] that you can use to validate and develop your diagrams. This component is based on the [[docs:utility:mermaid|mermaid component]].