# SiStatusBarComponent documentation

**Kind:** component

**Selector:** `si-status-bar`

```
import { SiStatusBarComponent } from '@siemens/element-ng/status-bar';
```

The status bar is the main component within an application to inform users at all times about important status information.

```
component SiStatusBarComponent implements OnDestroy, OnChanges
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [allOkText](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L111-L111>) | `TranslatableString` | `` $localize`:@@SI_STATUS_BAR.ALL_OK:All OK` `` | Text/translation key for "All OK" status in mobile |
| [blink](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L89-L89>) | `boolean` | `false` | When true, items with a value have a blinking background |
| [blinkPulse](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L121-L121>) | `Observable<boolean> \| undefined` |  | blink pulse generator for synchronized blinking with other components |
| [compact](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L117-L117>) | `boolean` | `false` | compact mode |
| [items](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L83-L83>) (required) | `StatusBarItem[]` |  | Array of status bar items. |
| [muteButton](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L93-L93>) | `boolean \| undefined` |  | State of the mute button. Set to `undefined` for no button. |
| [muteButtonText](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L102-L102>) | `TranslatableString` | `` $localize`:@@SI_STATUS_BAR.MUTE:Mute/unmute` `` | Text/translation key on mute button for screen reader |
| [toggleButtonText](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L131-L131>) | `TranslatableString` | `` $localize`:@@SI_STATUS_BAR.TOGGLE:Toggle` `` | Text for the toggle button that expands/collapses the status bar. Required for a11y. The expanded/collapsed state is communicated separately via `aria-expanded`. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [muteToggle](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar.component.ts#L136-L136>) | `void` | Emitted when the mute toggle button is clicked |

### Types Documentation

### [StatusBarItem](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L7-L38>)

**Kind:** interface

```
import type { StatusBarItem } from '@siemens/element-ng/status-bar';
```

```
interface StatusBarItem
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L37-L37>) (optional) | `((item: StatusBarItem) => void)` | Function to call when the item is clicked. |
| [blink](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L33-L33>) (optional) | `boolean` | When blinking is enabled, allows to explicitly disable blinking. `undefined` and `true` mean blink. |
| [color](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L28-L28>) (optional, deprecated) | `string` | Custom color as CSS value if `status` is not specified<br><br>Deprecated: use the semantic `status` input instead. |
| [status](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L19-L19>) (optional) | `ExtendedStatusType` | Status of the item. If not specified, specify `color` |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L15-L15>) | `string` | A descriptive title |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/status-bar/si-status-bar-item/si-status-bar-item.model.ts#L11-L11>) | `string \| number` | The value to show. 0 or '' means greyed out |

### [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'
```
