# SiSidePanelActionComponent documentation

**Kind:** component

**Selector:** `button[si-side-panel-action], a[si-side-panel-action]`

```
import { SiSidePanelActionComponent } from '@siemens/element-ng/side-panel';
```

Creates an action for the side-panel. This action will remain visible if the side-panel is collapsed.

Example:

```html
<si-side-panel-content>
  <si-side-panel-actions>
      <button
        type="button"
        si-side-panel-action
        icon="element-alarm-background-filled"
        iconColor="status-danger"
        stackedIcon="element-alarm-tick"
        stackedIconColor="text-primary"
        (click)="action()"
      >
        Action
      </button>
  </si-side-panel-actions>
</si-side-panel-content>
```

```
component SiSidePanelActionComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/side-panel/si-side-panel-action.component.ts#L73-L73>) | `boolean` | `false` | When disabled, renders a dot separator instead of the icon and label. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/side-panel/si-side-panel-action.component.ts#L57-L57>) (required) | `string` |  | Icon name for the main icon. |
| [iconColor](<https://github.com/siemens/element/blob/main/projects/element-ng/side-panel/si-side-panel-action.component.ts#L60-L60>) | `string \| undefined` |  | CSS color class for the main icon (e.g. `'status-warning'`). |
| [stackedIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/side-panel/si-side-panel-action.component.ts#L63-L63>) | `string \| undefined` |  | Optional stacked icon name displayed on top of the main icon. |
| [stackedIconColor](<https://github.com/siemens/element/blob/main/projects/element-ng/side-panel/si-side-panel-action.component.ts#L66-L66>) | `string \| undefined` |  | CSS color class for the stacked icon (e.g. `'text-primary'`). |
