# Circle status

*Circle status* indicates states on a table or list.

## Usage

The circle status shows a type icon with a status indicator overlay. The status can be a simple indication or a severity symbol: `Information`, `Caution`, `Warning`, `Danger`, `Critical`, `Pause`, `Progress` or `Unknown`. Circle status is available in two sizes: `Regular` or `Small`.

![Circle status](<../images/circle-status.png>)

![Status indication with icons](<../images/circle-status-usage.png>)

> 1. Circle status indication, 2. Status icon

### When to use

- On a [table](<https://element.siemens.io/components/lists-tables-trees/overview/>) or [list](<https://element.siemens.io/components/lists-tables-trees/list/>)
- At the beginning (left side) of a row
- Indicate the status on a type icon

### Best practices

- Badge on circle status shall be colored according definition for the [status colors](<https://element.siemens.io/fundamentals/colors/ui-colors/#status-deprecated>)
- Use it with severity symbols when there is a need to identify different severities
- The color of the icon should remain constant according definition in [UI colors](<https://element.siemens.io/fundamentals/colors/ui-colors/#ui-deprecated>)

## Design

There are some variations in the representation of the circle status.

![Status variation](<../images/circle-status-variation.png>)

> 1. Default state, 2. Variant with status symbol, 3. Variant with dot, 4. Pulsating state, 5. Supporting icon

### Variant: status symbol

Use a circle status with status symbols when there is a need to identify different severities or states.

### Variant: dot

Use the circle status with dot for simple indications, with **one specific status color** (`critical`, `danger`, ...) per viewport only. The status is indicated by a dot on top right of the circle. To ensure accessibility, the circle status a severity symbol is the better choice.

### Pulsating

The pulse feature is adding a circle on the badge, which fades the opacity. The rhythm and the fading must be in synch with the [status bar](<https://element.siemens.io/components/status-notifications/status-bar/>).

The pulse feature (blinking) is used to indicate places on the screen, where the user has to take immediate action.

The pulse feature (blinking effect) is used to highlight areas where the user needs to take immediate action. It is intended specifically for event lists. Using it in other contexts or too frequently can reduce its effectiveness.

### Supporting icon

Add a supporting icon when needed to provide extra context, such as indicating an 'in and out' event. While any icon can be assigned, ensure it adds meaningful context.

## Code

> [!NOTE]
>
> **No news are good news**
>
> The component does not implement the status `success`. Reason being a status should only be used when something has happened.

### Usage

```
import { SiCircleStatusComponent } from '@siemens/element-ng/circle-status';

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

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SiCircleStatusComponent } from '@siemens/element-ng/circle-status';

@Component({
  selector: 'app-sample',
  imports: [SiCircleStatusComponent, FormsModule],
  templateUrl: './si-circle-status.html'
})
export class SampleComponent {
  pulsing = false;
}
```

Template:

```html
<div class="p-6">
  <div class="background-1 p-6">
    <si-circle-status status="info" class="me-5" [blink]="pulsing" />
    <si-circle-status status="caution" class="me-5" [blink]="pulsing" />
    <si-circle-status status="warning" class="me-5" [blink]="pulsing" />
    <si-circle-status status="danger" class="me-5" [blink]="pulsing" />
    <si-circle-status status="critical" class="me-5" [blink]="pulsing" />
    <si-circle-status status="progress" class="me-5" [blink]="pulsing" />
    <si-circle-status status="pending" class="me-5" [blink]="pulsing" />
    <si-circle-status status="unknown" class="me-5" [blink]="pulsing" />
    <si-circle-status color="#D72339" [blink]="pulsing" />

    <h6 class="mt-6">Regular</h6>
    <si-circle-status status="info" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status
      status="caution"
      icon="element-plant"
      class="me-5"
      [blink]="pulsing"
      [eventOut]="true"
    />
    <si-circle-status
      status="caution"
      icon="element-plant"
      class="me-5"
      eventIcon="element-left-4 flip-rtl"
      [blink]="pulsing"
    />
    <si-circle-status status="warning" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status status="danger" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status status="critical" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status status="progress" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status status="pending" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status status="unknown" icon="element-plant" class="me-5" [blink]="pulsing" />
    <si-circle-status color="#D72339" icon="element-plant" [blink]="pulsing" />

    <h6 class="mt-6">Small</h6>
    <si-circle-status
      status="info"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status
      status="caution"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
      [eventOut]="true"
    />
    <si-circle-status
      status="caution"
      icon="element-plant"
      size="small"
      class="me-5"
      eventIcon="element-left-4 flip-rtl"
      [blink]="pulsing"
    />
    <si-circle-status
      status="warning"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status
      status="danger"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status
      status="critical"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status
      status="progress"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status
      status="pending"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status
      status="unknown"
      icon="element-plant"
      size="small"
      class="me-5"
      [blink]="pulsing"
    />
    <si-circle-status color="#D72339" icon="element-plant" size="small" [blink]="pulsing" />
  </div>

  <div class="mt-6 e2e-ignore">
    <div class="form-check mb-2">
      <input type="checkbox" class="form-check-input" id="no-selection" [(ngModel)]="pulsing" />
      <label class="form-check-label" for="no-selection"
        >Check to simulate pulsing indication.</label
      >
    </div>
  </div>
</div>
```

### [SiCircleStatusComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L30-L144>)

**Kind:** component

**Selector:** `si-circle-status`

```
import { SiCircleStatusComponent } from '@siemens/element-ng/circle-status';
```

```
component SiCircleStatusComponent implements OnChanges, OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L87-L87>) | `TranslatableString \| undefined` |  | Aria label for icon and status combo. Needed for a11y |
| [blink](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L77-L77>) | `boolean` | `false` | Whether the status should appear with a pulsing circle around the badge. |
| [blinkPulse](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L82-L82>) | `Observable<boolean> \| undefined` |  | Blink pulse generator for synchronized blinking with other components |
| [color](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L45-L45>) (deprecated) | `string \| undefined` |  | A custom color (e.g. `#fefefe`) for exceptional cases.<br><br>Deprecated: use the semantic `status` input instead. |
| [eventIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L70-L70>) | `string \| undefined` |  | Custom icon class for event out |
| [eventOut](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L65-L65>) | `boolean` | `false` | event direction is out |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L51-L51>) | `string \| undefined` |  | Set a domain type icon (e.g. `element-door`) for which the status shall be shown. Leave undefined for visualizing the status without an icon. |
| [size](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L58-L58>) | `"small" \| "regular"` | `'regular'` | Set the size using either regular or small only works when used together with `icon` |
| [status](<https://github.com/siemens/element/blob/main/projects/element-ng/circle-status/si-circle-status.component.ts#L35-L35>) | `EntityStatusType \| undefined` |  | The status (success, info, warning, danger) to be visualized. |

### Types Documentation

### [EntityStatusType](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/status-type.model.ts#L9-L9>)

**Kind:** type alias

```
import type { EntityStatusType } from '@siemens/element-ng/common';
```

```
type EntityStatusType = ExtendedStatusType | 'pending' | 'progress'
```

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```

### [ExtendedStatusType](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/status-type.model.ts#L8-L8>)

**Kind:** type alias

```
import type { ExtendedStatusType } from '@siemens/element-ng/common';
```

```
type ExtendedStatusType = StatusType | 'unknown'
```

### [StatusType](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/status-type.model.ts#L7-L7>)

**Kind:** type alias

```
import type { StatusType } from '@siemens/element-ng/common';
```

```
type StatusType = 'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical'
```
