# SiTabLinkComponent documentation

**Kind:** component

**Selector:** `a[si-tab][routerLink]`

```
import { SiTabLinkComponent } from '@siemens/element-ng/tabs';
```

Creates a tab that uses the Angular router.

Example:

```html
<si-tabset>
  <a si-tab routerLink="/home" heading="Home"></a>

  <router-outlet />
</si-tabset>
```

```
component SiTabLinkComponent extends SiTabBaseDirective
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L65-L65>) (inherited) | `string \| undefined` |  | Background color of the badge. If no color is provided a red dot badge will be rendered.<br><br>Inherited from `SiTabBaseDirective` |
| [badgeContent](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L60-L60>) (inherited) | `boolean \| TranslatableString \| undefined` |  | Additional badge content. A value of<br><br>• `true` will render a red dot<br><br>• any string without a `badgeColor` will render a red dot with text<br><br>• any string with a `badgeColor` will render a normal badge<br><br>Inherited from `SiTabBaseDirective` |
| [closable](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L81-L83>) (inherited) | `boolean` | `false` | Close the current tab.<br><br>Inherited from `SiTabBaseDirective` |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L71-L75>) (inherited) | `boolean` | `false` | Disables the tab.<br><br>Inherited from `SiTabBaseDirective` |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L48-L48>) (required, inherited) | `TranslatableString` |  | Title of the tab item.<br><br>Inherited from `SiTabBaseDirective` |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L53-L53>) (inherited) | `string \| undefined` |  | Icon of the tab item. If provided, heading text will be ignored and only icon will be displayed.<br><br>Inherited from `SiTabBaseDirective` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [closeTriggered](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-base.directive.ts#L85-L85>) (inherited) | `void` | Event emitter to notify when a tab is closed.<br><br>Inherited from `SiTabBaseDirective` |

#### Attributes and Methods

##### active

[Source for active](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-link.component.ts#L47-L49>)

**Modifiers:** readonly

**Type:** `Signal<boolean | undefined>`

**Default:** `false`

Inherited from `SiTabBaseDirective`

##### selectTab

[Source for selectTab](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-link.component.ts#L51-L61>)

{@inheritDoc}

Inherited from `SiTabBaseDirective`

```
selectTab(retainFocus?: boolean): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [retainFocus](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs/si-tab-link.component.ts#L51-L51>) (optional) | `boolean` |  |  |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

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