Class diagram

Class diagrams document a type’s attributes, methods, and visibility in a compact, 3-compartment box — the standard UML notation for object-oriented design docs and API references. zombie-mermaid renders all four visibility markers and inheritance/composition relationships.

Source → render

A type's shape, one compartment at a time.

shape.mmd
classDiagram
  class Animal {
    +String name
    +int age
    +eat() void
    +sleep() void
  }
Class diagram diagram, zombie-mermaid Animal + name: String + age: int + eat(): void + sleep(): void
More examples

More real-world examples.

Keep exploring

Explore the other diagram types.

Pick a look

Live in every built-in theme.