# findRootComponents

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/generators/diagrams/component-hierarchy-diagram.generator.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/generators/diagrams/component-hierarchy-diagram.generator.ts#L435)

Find all root components (components that are not rendered by others)

## Signature

```ts
function findRootComponents(components: ComponentEntity[], relationships: Relationship[]): string[]
```

## Parameters

| Name | Type |
|---|---|
| `components` | `ComponentEntity[]` |
| `relationships` | `Relationship[]` |

**Returns:** `string[]`
