Tuesday 5 December 2023

PlantUML: component element in Deployment diagram

Component is defined using component keyword.

component component1

component "my component 2" as component2

 

You can add description to a component using brackets []

 

component component3 [

This is component3,

<b>HTML</b> styling is supported

]

 

You can apply styles to a component at the time of definition.

 

component component4 #palegreen;line:blue;line.bold;text:blue[

This is component 4

]

 

component.txt

@startuml

title "component element"

component component1
component "my component 2" as component2

component component3 [
This is component3, 
<b>HTML</b> styling is supported
]

component component4 #palegreen;line:blue;line.bold;text:blue[
This is component 4
]

@enduml

Above snippet generate below diagram.



 

Previous                                                    Next                                                    Home

No comments:

Post a Comment