> Display a State diagram using Mermaid


A state diagram is a type of diagram used in computer science and related fields to describe the behavior of systems. For a complete syntax guide, refer to the **[Mermaid documentation](https://mermaid.js.org/)**.

## Example

```mermaid
---
title: Simple sample
---
stateDiagram-v2
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]

```

**Code：**
~~~
```mermaid
---
title: Simple sample
---
stateDiagram-v2
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]
```
~~~

