# SiStatusToggleComponent documentation

**Kind:** component

**Selector:** `si-status-toggle`

```
import { SiStatusToggleComponent } from '@siemens/element-ng/status-toggle';
```

```
component SiStatusToggleComponent implements ControlValueAccessor, OnInit, OnDestroy, OnChanges
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/si-status-toggle.component.ts#L50-L50>) | `boolean` | `false` | Disabled state for the whole component. |
| [items](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/si-status-toggle.component.ts#L45-L45>) (required) | `StatusToggleItem[]` |  | List of status items. |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/si-status-toggle.component.ts#L52-L52>) | `string \| number \| undefined` |  | Value of currently selected status item. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [itemClick](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/si-status-toggle.component.ts#L55-L55>) | `string \| number` | Emitted when an item is clicked. |
| [valueChange](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/si-status-toggle.component.ts#L52-L52>) | `string \| number \| undefined` | Value of currently selected status item. |

### Types Documentation

### [StatusToggleItem](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L8-L27>)

**Kind:** interface

```
import type { StatusToggleItem } from '@siemens/element-ng/status-toggle';
```

An item for si-status-toggle.

```
interface StatusToggleItem
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [activeIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L18-L18>) (optional) | `string` | Icon shown when the item is active. |
| [activeIconClass](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L22-L22>) (optional) | `string` | Class applied to the icon when the item is selected. |
| [activeIconStacked](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L20-L20>) (optional) | `string` | Stacked icon shown when the item is active. |
| [activeIconStackedClass](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L24-L24>) (optional) | `string` | Class applied to the stacked icon when the item is selected. |
| [activeTextClass](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L26-L26>) (optional) | `string` | Class applied to the text when the item is selected. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L16-L16>) (optional) | `boolean` | Whether the item is disabled. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L12-L12>) | `string` | Icon displayed for the item. |
| [text](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L10-L10>) | `TranslatableString` | Text displayed for the item. |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/status-toggle/status-toggle.model.ts#L14-L14>) | `string \| number` | Value of the item. |

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