I try to make nice picture with plantuml and 1 component inside another with some internal and external interfaces. Output is ugly with overlapping object and text in my example.
@startuml
left to right direction
component "component2" {
portin " " as pi1
portin " " as pi2
portout " " as po1
rectangle comp1
pi1 --> comp1
pi2 --> comp1
comp1 --> po1
}
label "Interface1" as I1
label "Interface2" as I2
label "Interface3" as O3
I1 --> pi1
I2 --> pi2
po1 --> O3
@enduml