---json
{
"canonical": ":class-diagram",
"description": "This article shows you how to create a class diagram.",
"name": "Class Diagram",
"page_id": "sbqkdk8yu75saexdaxq0c",
"title": "How to create a class diagram with ComboStrap"
}
---
====== ComboStrap Diagram - Class Diagram ======
===== About =====
The ''class-diagram'' component is a [[diagram|diagram component]] that permits to create a ''class diagram''.
===== Example =====
* The markup
```dw
classDiagram
Class01 <|-- AveryLongClass : Cool
Class03 *-- Class04
Class05 o-- Class06
Class07 .. Class08
Class09 --> C2 : Where am i?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
Class08 <--> C2: Cool label
```
* The output:
===== Syntax =====
The syntax is based on the [[https://mermaid-js.github.io/mermaid/#/classDiagram|mermaid class Diagram definition]]
... Mermaid Class 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]].