# SiIconLegacyComponent documentation

**Kind:** component

**Selector:** `si-icon-legacy`

```
import { SiIconLegacyComponent } from '@siemens/element-ng/icon';
```

Deprecated: This component should no longer be used. Use the [SiIconComponent](<../SiIconComponent/index.html#SiIconComponent>) instead. Existing usages can be replaced as follows:

```html
<!-- before -->
<si-icon icon="element-user" color="text-danger" />
<!-- after -->
<si-icon icon="element-user" class="icon text-danger" />
```

**Important:** Previously, the class `icon` was automatically applied. Unless not needed, it must now be applied manually. The icon class scales up the icon compared to its surrounding text.

Stacked icons need to be constructed in HTML directly. If applicable, the `si-status-icon` component should be used instead.

```html
<!-- before -->
<si-icon
  icon="element-circle-filled"
  color="status-success"
  stackedIcon="element-state-tick"
  stackedColor="status-success-contrast"
  alt="Success"
/>

<!-- after -->
<div class="icon-stack icon" aria-label="Success">
  <si-icon icon="element-circle-filled" class="status-success" />
  <si-icon icon="element-state-tick" class="status-success-contrast" />
</div>
```

```
component SiIconLegacyComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [alt](<https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon-legacy.component.ts#L60-L60>) | `TranslatableString \| undefined` |  | Alternative name or translation key for icon. Used for A11y. |
| [color](<https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon-legacy.component.ts#L54-L54>) | `string \| undefined` |  | Color class, see [https://element.siemens.io/fundamentals/typography/\#color-variants-classes](<https://element.siemens.io/fundamentals/typography/#color-variants-classes>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon-legacy.component.ts#L52-L52>) | `string \| undefined` |  | Icon token, see [https://element.siemens.io/icons/element](<https://element.siemens.io/icons/element>) |
| [size](<https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon-legacy.component.ts#L66-L66>) | `string` | `'icon'` | Text-size class for icon size, see [https://element.siemens.io/fundamentals/typography/\#type-styles-classes](<https://element.siemens.io/fundamentals/typography/#type-styles-classes>) |
| [stackedColor](<https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon-legacy.component.ts#L58-L58>) | `string \| undefined` |  | Color class, see [https://element.siemens.io/fundamentals/icons/](<https://element.siemens.io/fundamentals/icons/>) |
| [stackedIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon-legacy.component.ts#L56-L56>) | `string \| undefined` |  | Icon token, see [https://element.siemens.io/fundamentals/icons/](<https://element.siemens.io/fundamentals/icons/>) |

### Types Documentation

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