# SiActionCardComponent documentation

**Kind:** component

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

```
import { SiActionCardComponent } from '@siemens/element-ng/card';
```

An action card component that supports actions and selection on native buttons, and navigation on native anchors.

**Important:** The `selectable` and `selected` inputs are supported only on button action cards. Do not use them with an anchor.

Usage: as a selectable button card: `<button si-action-card selectable type="button" [(selected)]="isSelected">...</button>`

or as an action button card: `<button si-action-card type="button" (click)="doSomeAction()">...</button>`

or as a navigation card: `<a si-action-card href="/details">...</a>` `<a si-action-card routerLink="/details" routerLinkActive="selected">...</a>`

```
component SiActionCardComponent extends SiCardBaseDirective
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L20-L20>) (inherited) | `TranslatableString \| undefined` |  | Card header text.<br><br>Inherited from `SiCardBaseDirective` |
| [imgAlt](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L32-L32>) (inherited) | `TranslatableString \| undefined` |  | Alt text for a provided image.<br><br>Inherited from `SiCardBaseDirective` |
| [imgDir](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L38-L38>) (inherited) | `"horizontal" \| "vertical" \| undefined` | `'vertical'` | Defines if an image is placed on top or start (left) of the card.<br><br>Inherited from `SiCardBaseDirective` |
| [imgObjectFit](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L44-L46>) (inherited) | `"fill" \| "contain" \| "cover" \| "none" \| "scale-down" \| undefined` | `'scale-down'` | Sets the image [object-fit](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit>) CSS property.<br><br>Inherited from `SiCardBaseDirective` |
| [imgObjectPosition](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L50-L50>) (inherited) | `string \| undefined` |  | Sets the image [object-position](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-position>) CSS property.<br><br>Inherited from `SiCardBaseDirective` |
| [imgSrc](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L28-L28>) (inherited) | `string \| undefined` |  | Image source for the card.<br><br>Inherited from `SiCardBaseDirective` |
| [selectable](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-action-card.component.ts#L52-L54>) | `boolean` | `false` | Makes a button action card selectable. |
| [selected](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-action-card.component.ts#L60-L60>) | `boolean` | `false` | Indicates whether a selectable button action card is selected. |
| [subHeading](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L24-L24>) (inherited) | `TranslatableString \| undefined` |  | Card secondary header text.<br><br>Inherited from `SiCardBaseDirective` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [selectedChange](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-action-card.component.ts#L60-L60>) | `boolean` | Indicates whether a selectable button action card is selected. |

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