# Vertical navigation

**Vertical navigation** is a hierarchical global navigation that displays navigation options from top to bottom on the side of a screen.

## Usage

The vertical navigation is positioned below the [application header](<https://element.siemens.io/components/layout-navigation/application-header/>) and aligned to the left in the content area (for LTR languages).

There are two variants: one with icons and labels, and another with text labels only. Both variants can be collapsed to free up additional screen space.

![Vertical navigation](<../images/vertical-navigation.png>)

### When to use

- When the application requires a persistent side menu for organizing navigation elements in a clear, accessible manner.

### Best practices

- Only use icons if they clearly convey the intended meaning.
- Limit navigation to two tiers. For deeper content organization, consider using tabs, accordions or another navigation pattern.

## Design

### Elements

The vertical navigation can be configured with optional links, sub menus, and search, with only Expand/Collapse control being required.

![Vertical navigation elements](<../images/vertical-navigation-elements.png>)

### Labels

Labels have to be short and concise with a maximum of two words. The label will be truncated at the end with 3 `...`, if there is no sufficient space.

### Expand / Collapse

The vertical navigation with icons supports the possibility to be expanded or collapsed to provide additional screen real estate.

![Vertical navigation collapsed examples](<../images/vertical-navigation-collapsed.png>)

> 1. Divider expanded, 2. Divider collapsed, 3. Section title expanded, 4. Section title collapsed

### Item organization

Vertical navigation items can be organized into sections to enhance clarity and navigation flow. There are two methods:

- **Dividers:** Use it to separate items without labels. Is best for intuitive relationships where categories are unnecessary.
- **Section titles:** Apply section titles to label and categorize groups. Use for distinct categories requiring clear hierarchy.

![Vertical navigation with dividers and section titles](<../images/vertical-navigation-item-organization.png>)

Use either method individually or combine them, but avoid overuse, as it can make the navigation feel cluttered.

> 1. Divider expanded, 2. Divider collapsed, 3. Section title expanded, 4. Section title collapsed

### Badges (optional)

Items can include [badges](<https://element.siemens.io/components/status-notifications/badges/>) to provide users with quick, at-a-glance information. For submenus, badges are used only on child items. The parent item does not display a badge, except in the collapsed state.

When collapsed, numeric badges are shown in a compact form. If the badge contains text, it is displayed as a simple dot to indicate that something requires attention. Badges can be fully hidden in the collapsed state if needed.

![Vertical navigation with badges](<../images/vertical-navigation-badges.png>)

### Responsive behavior

The vertical navigation expands over the full height of the screen. It comes with a fixed width of 240px (expanded) or 48px when collapsed. If the height is not enough to show all the navigation menus, then a scrollbar will be available.

## Code

### Usage

```
import { SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';

@Component({
  imports: [
    SiNavbarVerticalComponent, ...
  ]
})
```

### Vertical navigation - icons & labels

To get a vertical navigation with icons, make sure to set icons for the top level items. No further configuration is necessary as `[textOnly]="false"` is the default value.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component, inject, OnInit } from '@angular/core';
import { ActivatedRoute, Router, RouterLink, RouterOutlet } from '@angular/router';
import {
  SiApplicationHeaderComponent,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import { NavbarVerticalItem, SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [
    SiNavbarVerticalComponent,
    SiApplicationHeaderComponent,
    SiHeaderBrandDirective,
    RouterLink,
    RouterOutlet,
    SiHeaderLogoDirective
  ],
  templateUrl: './si-navbar-vertical.html'
})
export class SampleComponent implements OnInit {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'router-link',
      label: 'Home',
      id: 'home',
      icon: 'element-home',
      routerLink: 'home'
    },
    { type: 'header', label: 'Modules' },
    {
      type: 'router-link',
      label: 'Energy & sustainability',
      icon: 'element-trend',
      routerLink: 'energy'
    },
    {
      type: 'group',
      label: 'User management',
      id: 'user-management',
      icon: 'element-user-group',
      children: [
        {
          type: 'router-link',
          label: 'Sub item',
          routerLink: 'subItem'
        },
        { type: 'router-link', label: 'Sub item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'router-link',
      label: 'Test coverage',
      icon: 'element-diagnostic',
      routerLink: 'coverage'
    },
    { type: 'divider' },
    {
      type: 'group',
      label: 'Documentation',
      id: 'documentation',
      icon: 'element-document',
      children: [
        { type: 'router-link', label: 'Sub item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub item 6', routerLink: 'subItem6' }
      ]
    },
    {
      // AVOID USING `type: 'action'`.
      // Actions inside the navbar are an indication for a code smell.
      // Use `type: 'router-link'` instead whenever possible.
      type: 'action',
      label: 'Action',
      icon: 'element-warning',
      active: false,
      action: () => this.logEvent('Callback for action called')
    }
  ];

  private activeRoute = inject(ActivatedRoute);
  private router = inject(Router);
  logEvent = inject(LOG_EVENT);

  ngOnInit(): void {
    this.router.navigate(['home'], { relativeTo: this.activeRoute });
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top">
  <si-application-header>
    <si-header-brand>
      <a routerLink="/" siHeaderLogo></a>
      <h1 class="application-name">Navbar Vertical Example</h1>
    </si-header-brand>
  </si-application-header>

  <si-navbar-vertical
    stateId="navbar-vertical-with-icons"
    navbarCollapseButtonText="collapse"
    navbarExpandButtonText="expand"
    searchPlaceholder="Search..."
    [items]="menuItems"
    [searchable]="true"
  >
    <div class="si-layout-main-padding">
      <div class="si-layout-header">
        <h2 class="si-layout-title si-layout-top-element">Here is a title</h2>
      </div>
      <router-outlet />
    </div>
  </si-navbar-vertical>
</div>
```

### Vertical navigation - text labels only

To get a vertical navigation without icons, i.e. labels only set `[textOnly]="true"`.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { RouterLink } from '@angular/router';
import {
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem, SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';

@Component({
  selector: 'app-sample',
  imports: [
    SiApplicationHeaderComponent,
    SiHeaderActionsDirective,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderBrandDirective,
    SiNavbarVerticalComponent,
    RouterLink,
    SiHeaderLogoDirective
  ],
  templateUrl: './si-navbar-vertical-text.html'
})
export class SampleComponent {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];
}
```

Template:

```html
<div class="has-navbar-fixed-top">
  <si-application-header>
    <si-header-brand>
      <a routerLink="/" siHeaderLogo class="d-none d-md-flex"></a>
      <h1 class="application-name">Navbar vertical text only</h1>
    </si-header-brand>
    <si-header-actions>
      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
    </si-header-actions>
  </si-application-header>

  <ng-template #account>
    <si-header-dropdown>
      <div class="mx-5">
        <div class="si-h5">Jane Smith</div>
        <div>jane.smith.simpl&#64;example.org</div>
        <div class="d-flex align-items-center text-secondary mt-2"> ExampleOrg </div>
      </div>
    </si-header-dropdown>
  </ng-template>

  <si-navbar-vertical
    stateId="navbar-vertical-without-icons"
    navbarCollapseButtonText="collapse"
    navbarExpandButtonText="expand"
    [items]="menuItems"
    [textOnly]="true"
  >
    <div class="si-layout-main-padding">
      <div class="si-layout-header">
        <h2 class="si-layout-title si-layout-top-element">Here is a title</h2>
      </div>
      Here goes the content
    </div>
  </si-navbar-vertical>
</div>
```

### [SiNavbarVerticalComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L107-L406>)

**Kind:** component

**Selector:** `si-navbar-vertical`

```
import { SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';
```

```
component SiNavbarVerticalComponent implements OnChanges, OnInit, SiNavbarVerticalLayout
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [collapsed](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L114-L114>) | `boolean` | `false` | Whether the navbar-vertical is collapsed.<br><br>Implements `SiNavbarVerticalLayout` |
| [items](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L140-L140>) | `(MenuItem \| NavbarVerticalItem)[]` | `[]` | List of vertical navigation items |
| [navbarCollapseButtonText](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L184-L186>) | `TranslatableString` | `` $localize`:@@SI_NAVBAR_VERTICAL.COLLAPSE:Collapse` `` | Text for the navbar collapse button. Required for a11y |
| [navbarExpandButtonText](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L174-L174>) | `TranslatableString` | `` $localize`:@@SI_NAVBAR_VERTICAL.EXPAND:Expand` `` | Text for the navbar expand button. Required for a11y |
| [searchable](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L121-L121>) | `boolean` | `false` | Toggles search bar |
| [searchDebounceTime](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L221-L221>) | `number` | `400` | Debounce time for the search input |
| [searchPlaceholder](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L131-L133>) | `TranslatableString` | `` $localize`:@@SI_NAVBAR_VERTICAL.SEARCH_PLACEHOLDER:Search…` `` | Placeholder text for search |
| [skipLinkMainContentLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L214-L216>) | `TranslatableString` | `` $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL:Main content` `` | Label for the skip link to main content |
| [skipLinkNavigationLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L202-L204>) | `TranslatableString` | `` $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL:Navigation` `` | Label for the skip link to the vertical navbar |
| [stateId](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L192-L192>) | `string \| undefined` |  | An optional stateId to uniquely identify a component instance. Required for persistence of ui state. |
| [textOnly](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L152-L152>) | `boolean` | `false` | Set to `true` if there are no icons<br><br>Implements `SiNavbarVerticalLayout` |
| [visible](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L164-L164>) | `boolean` | `true` | Set to false to hide the vertical navbar<br><br>Implements `SiNavbarVerticalLayout` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [collapsedChange](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L114-L114>) | `boolean` | Whether the navbar-vertical is collapsed.<br><br>Implements `SiNavbarVerticalLayout` |
| [itemsChange](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L140-L140>) | `(MenuItem \| NavbarVerticalItem)[]` | List of vertical navigation items |
| [searchEvent](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L225-L225>) | `string` | Output for search bar input |

#### Attributes and Methods

##### collapse

[Source for collapse](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L327-L334>)

Collapses the vertical navbar.

```
collapse(): void
```

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

##### expand

[Source for expand](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.component.ts#L318-L324>)

Expands the vertical navbar.

```
expand(): void
```

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

### Types Documentation

### [MenuItem](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L19-L85>)

**Kind:** interface

```
import type { MenuItem } from '@siemens/element-ng/common';
```

The MenuItem is used to configure clickable items in menus. They support a name, link, icons and sub-menu items.

Deprecated: This interface should no longer be used. Use a corresponding alternative based on your use case:

• for [SiMenuFactoryComponent](<../../../api/siemens/element-ng/components/SiMenuFactoryComponent/index.html#SiMenuFactoryComponent>) use [@siemens/element-ng/menu\#MenuItem](<../../../api/siemens/element-ng/types/_entrypoints/menu/MenuItem/index.html#t:MenuItem>)

• for [SiContentActionBarComponent](<../../../api/siemens/element-ng/components/SiContentActionBarComponent/index.html#SiContentActionBarComponent>) use [@siemens/element-ng/menu\#MenuItem](<../../../api/siemens/element-ng/types/_entrypoints/menu/MenuItem/index.html#t:MenuItem>) and [ContentActionBarMainItem](<../../../api/siemens/element-ng/types/ContentActionBarMainItem/index.html#t:ContentActionBarMainItem>)

• for [SiNavbarVerticalComponent](<index.html#SiNavbarVerticalComponent>) use [NavbarVerticalItem](<index.html#t:NavbarVerticalItem>)

• for [@siemens/dashboards-ng\#SiFlexibleDashboardComponent](<../../../api/siemens/dashboards-ng/components/SiFlexibleDashboardComponent/index.html#SiFlexibleDashboardComponent>) use [@siemens/dashboards-ng\#DashboardToolbarItem](<../../../api/siemens/dashboards-ng/types/DashboardToolbarItem/index.html#t:DashboardToolbarItem>)

```
interface MenuItem extends Link
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L42-L42>) (optional, inherited) | `string \| ((param?: any) => void \| any)` | A function that will be invoked when clicking on the menu item. When passed as a string, use together with SiLinkActionService to receive events. This is meant for repetitive things in lists/tables/etc.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L56-L56>) (optional) | `string \| number` | Defines the content of the optional badge. Should be a number or something like "100+". if undefined or empty string, no badge is displayed |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L60-L60>) (optional) | `string` | Defines the background color of the badge. Default is specific to Element flavour. |
| [badgeDot](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L68-L68>) (optional) | `boolean` | Show a dot badge without content? |
| [badgeStyle](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L64-L64>) (optional) | `"" \| "inline" \| "dot"` | Defines the badge style |
| [customContent](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L51-L51>) (optional) | `boolean` | Defines if custom content is chosen in account dropdown (otherwise accountItems are used) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L50-L50>) (optional, inherited) | `boolean` | A boolean that lets the link know whether it is disabled or not.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [dropUpwards](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L84-L84>) (optional) | `boolean` | Whether the menu items sub-menu should open upwards instead of downwards. |
| [expanded](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L42-L42>) (optional) | `boolean` | If the menu item has children you can specify if they are visible or not. |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L22-L22>) (optional, inherited) | `string` | Defines a href URI that the menu item will be linked to. Will be used to set the href attribute of the a element. Will only be used if link and function is not set.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L27-L27>) (optional) | `string` | The web font icon class name (e.g. element-settings-outline). |
| [iconOnly](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L46-L46>) (optional) | `boolean` | Defines if only the icon is shown in the default navigation bar. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L23-L23>) (optional) | `string` | An optional id to uniquely identify the menu item. |
| [image](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L32-L32>) (optional) | `string` | The value for an image src tag. Maybe a relative or absolute link to an jpg or gif image. |
| [isActive](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L46-L46>) (optional, inherited) | `boolean` | A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [isHeading](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L80-L80>) (optional) | `boolean` | Whether the menu item should be displayed as a heading/title, will also disable links and actions. |
| [items](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L37-L37>) (optional) | `MenuItem[]` | A navigation bar item can have a sub-menu, if these items are set. They define the sub-menu content. |
| [link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L32-L32>) (optional, inherited) | `string \| any[]` | Defines the link of the menu item within the application using the angular router link concept. Accepts an array of `any` as per \[routerLink API definition\][https://angular.dev/api/router/RouterLink](<https://angular.dev/api/router/RouterLink>).<br><br>Inherited from [Link](<index.html#t:Link>) |
| [navigationExtras](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L36-L36>) (optional, inherited) | `NavigationExtras` | The navigation extras provide additional routing options when using the router link.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [selectionState](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L72-L72>) (optional) | `"" \| "check" \| "radio"` | For single/multi choice items: the kind of icon to show. |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L27-L27>) (optional, inherited) | `string` | The target attribute specifies where to open the linked document. If no target is specified, the link will open in the current tab.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L12-L12>) (optional, inherited) | `TranslatableString` | The title of the menu item. Can be either the title to be displayed or the translation key.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [tooltip](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L17-L17>) (optional, inherited) | `TranslatableString` | The optional tooltip of the link. Can be either the text to be displayed or the translation key.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L76-L76>) (optional) | `"check" \| "radio"` | Type to distinguish between check and radio menu items. Needs to be set for correct interaction and used for a11y. |

### [NavbarVerticalItem](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L86-L92>)

**Kind:** type alias

```
import type { NavbarVerticalItem } from '@siemens/element-ng/navbar-vertical';
```

Union type for all possible all items in the navbar.

```
type NavbarVerticalItem = | NavbarVerticalItemGroup
  | NavbarVerticalItemRouterLink
  | NavbarVerticalItemLink
  | NavbarVerticalItemAction
  | NavbarVerticalItemHeader
  | NavbarVerticalItemDivider
```

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

### [Link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L8-L51>)

**Kind:** interface

```
import type { Link } from '@siemens/element-ng/link';
```

```
interface Link
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L42-L42>) (optional) | `string \| ((param?: any) => void \| any)` | A function that will be invoked when clicking on the menu item. When passed as a string, use together with SiLinkActionService to receive events. This is meant for repetitive things in lists/tables/etc. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L50-L50>) (optional) | `boolean` | A boolean that lets the link know whether it is disabled or not. |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L22-L22>) (optional) | `string` | Defines a href URI that the menu item will be linked to. Will be used to set the href attribute of the a element. Will only be used if link and function is not set. |
| [isActive](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L46-L46>) (optional) | `boolean` | A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route. |
| [link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L32-L32>) (optional) | `string \| any[]` | Defines the link of the menu item within the application using the angular router link concept. Accepts an array of `any` as per \[routerLink API definition\][https://angular.dev/api/router/RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [navigationExtras](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L36-L36>) (optional) | `NavigationExtras` | The navigation extras provide additional routing options when using the router link. |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L27-L27>) (optional) | `string` | The target attribute specifies where to open the linked document. If no target is specified, the link will open in the current tab. |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L12-L12>) (optional) | `TranslatableString` | The title of the menu item. Can be either the title to be displayed or the translation key. |
| [tooltip](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L17-L17>) (optional) | `TranslatableString` | The optional tooltip of the link. Can be either the text to be displayed or the translation key. |

### [NavbarVerticalItemGroup](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L31-L37>)

**Kind:** interface

```
import type { NavbarVerticalItemGroup } from '@siemens/element-ng/navbar-vertical';
```

Use this type to create a group that can hold multiple items.

```
interface NavbarVerticalItemGroup extends NavbarVerticalItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L17-L17>) (optional, inherited) | `string \| number` | Badge that is rendered after the label or as a red dot in the collapsed state.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L22-L22>) (optional, inherited) | `string` | Color of the badge. Use any color shown here [https://element.siemens.io/components/status-notifications/badges/\#example](<https://element.siemens.io/components/status-notifications/badges/#example>) without `bg-` prefix.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [children](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L34-L34>) | `NavbarVerticalSubItem[]` | Submenu items for this menu item. |
| [expanded](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L36-L36>) (optional) | `boolean` | Set this property if the item should be expanded by default. |
| [hideBadgeWhenCollapsed](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L27-L27>) (optional, inherited) | `boolean` | Hide badge when navbar is collapsed. By default, badges are always visible (both expanded and collapsed).<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L15-L15>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L11-L11>) (optional, inherited) | `string` | The ID is required if the navbar is used with UIState.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L13-L13>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L32-L32>) | `"group"` |  |

### [NavbarVerticalItemRouterLink](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L40-L48>)

**Kind:** interface

```
import type { NavbarVerticalItemRouterLink } from '@siemens/element-ng/navbar-vertical';
```

Use this type to create a routerLink item.

```
interface NavbarVerticalItemRouterLink extends NavbarVerticalItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [activeMatchOptions](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L47-L47>) (optional) | `IsActiveMatchOptions \| { exact: boolean; }` | Active match options for routerLinkActive |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L17-L17>) (optional, inherited) | `string \| number` | Badge that is rendered after the label or as a red dot in the collapsed state.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L22-L22>) (optional, inherited) | `string` | Color of the badge. Use any color shown here [https://element.siemens.io/components/status-notifications/badges/\#example](<https://element.siemens.io/components/status-notifications/badges/#example>) without `bg-` prefix.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [extras](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L45-L45>) (optional) | `NavigationExtras` | Navigation extras that are passed to the [RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [hideBadgeWhenCollapsed](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L27-L27>) (optional, inherited) | `boolean` | Hide badge when navbar is collapsed. By default, badges are always visible (both expanded and collapsed).<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L15-L15>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L11-L11>) (optional, inherited) | `string` | The ID is required if the navbar is used with UIState.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L13-L13>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [routerLink](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L43-L43>) | `string \| any[]` | Link for the angular router. Accepts the same values as [RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L41-L41>) | `"router-link"` |  |

### [NavbarVerticalItemLink](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L51-L57>)

**Kind:** interface

```
import type { NavbarVerticalItemLink } from '@siemens/element-ng/navbar-vertical';
```

Use this type to create an href link that will cause a real navigation.

```
interface NavbarVerticalItemLink extends NavbarVerticalItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L17-L17>) (optional, inherited) | `string \| number` | Badge that is rendered after the label or as a red dot in the collapsed state.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L22-L22>) (optional, inherited) | `string` | Color of the badge. Use any color shown here [https://element.siemens.io/components/status-notifications/badges/\#example](<https://element.siemens.io/components/status-notifications/badges/#example>) without `bg-` prefix.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [hideBadgeWhenCollapsed](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L27-L27>) (optional, inherited) | `boolean` | Hide badge when navbar is collapsed. By default, badges are always visible (both expanded and collapsed).<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L54-L54>) | `string` | The href property of the anchor. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L15-L15>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L11-L11>) (optional, inherited) | `string` | The ID is required if the navbar is used with UIState.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L13-L13>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L56-L56>) (optional) | `string` | The target property of the anchor. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L52-L52>) | `"link"` |  |

### [NavbarVerticalItemAction](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L65-L74>)

**Kind:** interface

```
import type { NavbarVerticalItemAction } from '@siemens/element-ng/navbar-vertical';
```

AVOID USING THIS TYPE! Actions inside the navbar are an indication for a code smell.

Use [NavbarVerticalItemRouterLink](<index.html#t:NavbarVerticalItemRouterLink>) instead whenever possible.

```
interface NavbarVerticalItemAction extends NavbarVerticalItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L68-L68>) | `(source: NavbarVerticalItemAction) => void` | Action that is called when the navbar item is triggered. |
| [active](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L73-L73>) (optional) | `boolean` | The active state of the item. Note: It must be set manually. |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L17-L17>) (optional, inherited) | `string \| number` | Badge that is rendered after the label or as a red dot in the collapsed state.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L22-L22>) (optional, inherited) | `string` | Color of the badge. Use any color shown here [https://element.siemens.io/components/status-notifications/badges/\#example](<https://element.siemens.io/components/status-notifications/badges/#example>) without `bg-` prefix.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [hideBadgeWhenCollapsed](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L27-L27>) (optional, inherited) | `boolean` | Hide badge when navbar is collapsed. By default, badges are always visible (both expanded and collapsed).<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L15-L15>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L11-L11>) (optional, inherited) | `string` | The ID is required if the navbar is used with UIState.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L13-L13>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [NavbarVerticalItemBase](<index.html#t:NavbarVerticalItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L66-L66>) | `"action"` |  |

### [NavbarVerticalItemHeader](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L76-L79>)

**Kind:** interface

```
import type { NavbarVerticalItemHeader } from '@siemens/element-ng/navbar-vertical';
```

```
interface NavbarVerticalItemHeader
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L78-L78>) | `TranslatableString` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L77-L77>) | `"header"` |  |

### [NavbarVerticalItemDivider](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L81-L83>)

**Kind:** interface

```
import type { NavbarVerticalItemDivider } from '@siemens/element-ng/navbar-vertical';
```

```
interface NavbarVerticalItemDivider
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L82-L82>) | `"divider"` |  |

### [NavbarVerticalSubItem](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L95-L96>)

**Kind:** type alias

```
import type { NavbarVerticalSubItem } from '@siemens/element-ng/navbar-vertical';
```

Union type for all items that can be wrapped in a group.

```
type NavbarVerticalSubItem = NavbarVerticalItemRouterLink | NavbarVerticalItemLink | NavbarVerticalItemAction
```

### [NavbarVerticalItemBase](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L9-L28>)

**Kind:** interface

```
import type { NavbarVerticalItemBase } from '@siemens/element-ng/navbar-vertical';
```

Common properties shared among navbar item types.

```
interface NavbarVerticalItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L17-L17>) (optional) | `string \| number` | Badge that is rendered after the label or as a red dot in the collapsed state. |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L22-L22>) (optional) | `string` | Color of the badge. Use any color shown here [https://element.siemens.io/components/status-notifications/badges/\#example](<https://element.siemens.io/components/status-notifications/badges/#example>) without `bg-` prefix. |
| [hideBadgeWhenCollapsed](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L27-L27>) (optional) | `boolean` | Hide badge when navbar is collapsed. By default, badges are always visible (both expanded and collapsed). |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L15-L15>) (optional) | `string` | Optional icon that will be rendered before the label. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L11-L11>) (optional) | `string` | The ID is required if the navbar is used with UIState. |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/navbar-vertical/si-navbar-vertical.model.ts#L13-L13>) | `TranslatableString` | Label that is shown to the user. |
