# Connection strength

The **connection-strength**-component informs the user about the signal quality of a connection in a simplified and graphical way. It informs the user if there is an **issue with the signal** or about the signal quality \[**strong**, **medium**, **low**\].

## Usage

The **connection-strength**-component can be used in **tables**, **lists**, **cards** or any other component where the quality of a connection needs to be visualized to the user.

![Connection Strength Usage](<../images/connection-strength-usage.png>)

### Types

There are two different representations available:

#### Connection (General)

![Connection Strength General](<../images/connection-strength-general.png>)

#### WLAN

![Connection Strength WLAN](<../images/connection-strength-wlan.png>)

### When to use

Use this component when you want to give the user more details about the signal quality, when e.g. a static icon will not be good enough.

## Code

### Usage

```
import { SiConnectionStrengthComponent } from '@siemens/element-ng/connection-strength';

@Component({
  imports: [SiConnectionStrengthComponent, ...]
})
```

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { SiConnectionStrengthComponent } from '@siemens/element-ng/connection-strength';

@Component({
  selector: 'app-sample',
  imports: [SiConnectionStrengthComponent],
  templateUrl: './si-connection-strength.html',
  host: { class: 'p-5' }
})
export class SampleComponent {}
```

Template:

```html
<p>
  <si-connection-strength class="si-display-xl" value="none" />
  <si-connection-strength class="si-display-xl" value="low" />
  <si-connection-strength class="si-display-xl" value="medium" />
  <si-connection-strength class="si-display-xl" value="strong" />
</p>

<p>
  <si-connection-strength class="si-display-xl" value="none" [wlan]="true" />
  <si-connection-strength class="si-display-xl" value="low" [wlan]="true" />
  <si-connection-strength class="si-display-xl" value="medium" [wlan]="true" />
  <si-connection-strength class="si-display-xl" value="strong" [wlan]="true" />
</p>
```

### [SiConnectionStrengthComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/connection-strength/si-connection-strength.component.ts#L16-L31>)

**Kind:** component

**Selector:** `si-connection-strength`

```
import { SiConnectionStrengthComponent } from '@siemens/element-ng/connection-strength';
```

```
component SiConnectionStrengthComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/connection-strength/si-connection-strength.component.ts#L28-L28>) | `ConnectionStrength` | `'none'` | Main value representing the current connection strength. |
| [wlan](<https://github.com/siemens/element/blob/main/projects/element-ng/connection-strength/si-connection-strength.component.ts#L22-L22>) | `boolean` | `false` | Shows the signal representation in an alternative WLAN format |

### Types Documentation

### [ConnectionStrength](<https://github.com/siemens/element/blob/main/projects/element-ng/connection-strength/si-connection-strength.component.ts#L7-L7>)

**Kind:** type alias

```
import type { ConnectionStrength } from '@siemens/element-ng/connection-strength';
```

```
type ConnectionStrength = 'none' | 'low' | 'medium' | 'strong'
```
