Component
Interface
Rectangle
Actor
Artifact
@startuml
component [component] as myComponent
@enduml
@startuml
() "This is an interface" as myInterface
@enduml
@startuml
rectangle "This is a Rectangle"
@enduml
Rectangles can group other objects:
@startuml
rectangle "This is a Rectangle with things in it" {
() " " as o1
() " " as o2
:Actor:
[Component]
}
@enduml
Note that if you use keyword 'actor', it will assume format of a sequence diagram. Use colons around actor name instead.
@startuml
:"Alice":
@enduml
Can change colour etc with skinparams:
@startuml
skinparam ActorBorderColor black
skinparam ActorBackgroundColor white
:"Alice":
actor "Bob"
@enduml
An artifact in UML is generally a file
@startuml
artifact "config.json"
@enduml