UML Component Diagram Generator
Create UML component diagrams showing components, interfaces, ports, and dependencies
Components
WebApp
API Server
Database
Auth Service
Connections
WebApp → API Server
API Server → Database
API Server → Auth Service
Style Settings
Theme
Preview
Export
HTML Output
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UML Component Diagram</title>
<style>
.component-diagram-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f5f7fa;
padding: 20px;
}
.component-diagram-container svg {
max-width: 100%;
height: auto;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.component-box {
fill: #ffffff;
stroke: #3498db;
stroke-width: 2;
}
.component-name {
fill: #2c3e50;
font-weight: bold;
}
.component-stereotype {
fill: #2c3e50;
font-style: italic;
}
.port-box {
fill: #9b59b6;
}
.connection-line {
stroke: #34495e;
stroke-width: 1.5;
fill: none;
}
.connection-label {
fill: #2c3e50;
}
</style>
</head>
<body>
<div class="component-diagram-container">
</div>
</body>
</html>