# SiIconComponent documentation

**Kind:** component

**Selector:** `si-icon`

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

Component to render a font or SVG icon depending on the configuration. If no SVG icon is found, the component will fall back to render the icon-font. In that case, an application must ensure that the icon font is loaded. This component will only attach the respective class.

The content of this component is hidden in the a11y tree. If needed, the consumer must set proper labels.

```
component SiIconComponent
```

#### Input Properties

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr id="SiIconComponent.icon"> <td class="api-column-name"><span data-api-type-target-for="SiIconComponent.icon" id="t:SiIconComponent.icon"></span><a href="https://github.com/siemens/element/blob/main/projects/element-ng/icon/si-icon.component.ts#L49-L49">icon</a> (required)</td> <td class="api-column-type"><code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></td> <td class="api-column-description"><p>Define which icon should be rendered. Provide using:</p><p>• value of the icon map provided by <code>addIcons</code></p><p>• (not recommended): plain string in kebab-case or camelCase</p><p>Example:</p><pre><code class="language-ts">import { elementUser } from '@siemens/element-icons';&#10;&#10;@Component({template: `&#10;  &lt;si-icon [icon]=&quot;icons.elementUser&quot; /&gt;&#10;  &lt;si-icon icon=&quot;element-user&quot; /&gt;&#10;  &lt;si-icon icon=&quot;elementUser&quot; /&gt;&#10;&#10;`})&#10;class MyComponent {&#10;  icons = addIcons(elementUser);&#10;}</code></pre></td></tr></tbody></table>
