# Notification item

## Usage

Notifications keep users updated on changes, prompt timely responses to important updates, and guide them through interactions. They can be delivered through various channels, such as push notifications, emails, or texts.

Element provides [guidance](<https://element.siemens.io/patterns/notifications/>) on **in-app notifications**, which deliver updates and feedback within the application experience.

### Notification anatomy

![Notifications anatomy](<../images/notifications-anatomy.png>)

Each notification typically consists of the following elements:

1. **Indicator:** Indicates priority and/or type using a color and icon.
2. **Timestamp:** Shows when the event occurred.
3. **Heading:** A concise phrase that quickly conveys what happened.
4. **Description:** Provides details if needed.
5. **Primary action:** The main action related to the notification. It can be a single button or a menu with multiple options.
6. **Quick actions:** Allows users to take quick action, such as dismissing or responding.

Except for the notification title and timestamp, all elements are optional.

### Notification indicators

The notification indicators reflect the state or condition of the notification, helping users understand its relevance.

- When differentiation is needed, **severity-based indicators** provide a clear response hierarchy. Each severity level is paired with a color and icon to ensure consistency.
- If needed, a [circle status](<https://element.siemens.io/components/status-notifications/circle-status/>) or [avatars](<https://element.siemens.io/components/status-notifications/avatar/>) can be used to provide further context.
- If the content itself provides enough context, no visual indicator is needed.

![Notifications indicators](<../images/notifications-indicators.png>)

When a notification has read and unread states, the unread state is indicated by a dot and bold title text.

![Notifications unread state](<../images/notifications-unread-state.png>)

### Actions

The main purpose of a notification is to redirect users to the relevant page, task, or item it highlights. Depending on the notification's design, additional actions may also be available.

**Global actions** affect all notifications at once or adjust system-wide settings (e.g., settings, show all, dismiss all).

**Notification-level actions** apply to individual notifications for quick management. Common examples include:

- Dismiss: Removes the notification from the current view (e.g., popover, side panel, etc.) but keeps it in the notification center for future reference. Dismiss does not change the read and acknowledge states.
- Delete: Permanently deletes the notification from the system.
- Acknowledge: Confirms receipt, indicating that the user is informed and may take further action.
- Resolve: Used when the system can fix the issue automatically or the user is guided through a resolution process.

### Best practices

- Deliver notifications at the right moment to avoid unnecessary distractions.
- Categorize notifications to prioritize critical events.
- Allow users to manage notification settings where possible.
- Define clear thresholds for timestamps. Use relative time for recent events (e.g., "Just now", "5 minutes ago", "09:42", "Yesterday") and switch to absolute dates (e.g., "10/01/2024") for older events.
- Consider setting an expiration timeframe for transient notifications, but allow critical ones to persist until the issue is resolved.

## Code

### Usage

```
import { SiNotificationItemComponent } from '@siemens/element-ng/notification-item';

@Component({
  imports: [SiNotificationItemComponent]
})
```

### Examples

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component, inject } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SiAvatarComponent } from '@siemens/element-ng/avatar';
import { SiCircleStatusComponent } from '@siemens/element-ng/circle-status';
import { SiFormItemComponent } from '@siemens/element-ng/form';
import { SiStatusIconComponent } from '@siemens/element-ng/icon';
import {
  SiNotificationItemComponent,
  type NotificationItemQuickAction,
  type NotificationItemActionButton,
  type NotificationItemActionIconButton,
  type NotificationItemMenu,
  type NotificationItemLink
} from '@siemens/element-ng/notification-item';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [
    SiNotificationItemComponent,
    SiAvatarComponent,
    SiCircleStatusComponent,
    FormsModule,
    SiFormItemComponent,
    SiStatusIconComponent
  ],
  templateUrl: './si-notification-item.html',
  host: { class: 'p-5' }
})
export class SampleComponent {
  description =
    'Important system notification requiring your attention. Please review the details and take appropriate action if needed.';

  logEvent = inject(LOG_EVENT);

  unread = false;
  showPrimaryAction = true;
  showQuickActions = true;

  itemLink: NotificationItemLink = {
    type: 'link',
    href: 'https://www.siemens.com',
    target: '_blank'
  };

  quickActions: NotificationItemQuickAction[] = [
    {
      type: 'action-icon-button',
      icon: 'element-checkbox-checked',
      ariaLabel: 'Read',
      action: () => this.logEvent('Read')
    },
    {
      type: 'action-icon-button',
      icon: 'element-archive',
      ariaLabel: 'Archive',
      action: () => this.logEvent('Archive')
    },
    {
      type: 'action-icon-button',
      icon: 'element-delete',
      ariaLabel: 'Delete',
      action: () => this.logEvent('Delete')
    }
  ];

  quickActionsLinks: NotificationItemQuickAction[] = [
    {
      type: 'link',
      icon: 'element-home',
      ariaLabel: 'Home',
      href: 'https://www.siemens.com',
      target: '_blank'
    },
    {
      type: 'router-link',
      icon: 'element-export',
      ariaLabel: 'Home',
      routerLink: '/'
    }
  ];

  menu: NotificationItemMenu = {
    type: 'menu',
    menuItems: [
      {
        type: 'action',
        label: 'Action 1',
        action: () => this.logEvent('Action 1')
      },
      {
        type: 'action',
        label: 'Action 2',
        action: () => this.logEvent('Action 2')
      },
      {
        type: 'action',
        label: 'Action 3',
        action: () => this.logEvent('Action 3')
      }
    ]
  };

  iconButton: NotificationItemActionIconButton = {
    type: 'action-icon-button',
    icon: 'element-share',
    ariaLabel: 'Share',
    action: () => this.logEvent('Share')
  };

  actionButton: NotificationItemActionButton = {
    type: 'action-button',
    label: 'Dismiss',
    action: () => this.logEvent('Dismiss')
  };
}
```

Template:

```html
<div class="card d-flex flex-row flex-wrap gap-4 p-5">
  <div class="col">
    <h2 class="ps-6">Notification Types & Visual Indicators</h2>
    <div>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="System Alert - Basic notification"
        [description]="description"
        [itemLink]="itemLink"
        [primaryAction]="showPrimaryAction ? menu : undefined"
        [unread]="unread"
      />
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="Security Warning - High priority alert"
        [description]="description"
        [itemLink]="itemLink"
        [primaryAction]="showPrimaryAction ? iconButton : undefined"
        [quickActions]="showQuickActions ? quickActions : undefined"
        [unread]="unread"
      >
        <si-status-icon status="danger" class="icon" />
      </si-notification-item>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="Plant maintenance required"
        [description]="description"
        [itemLink]="itemLink"
        [primaryAction]="showPrimaryAction ? actionButton : undefined"
        [unread]="unread"
      >
        <si-circle-status icon="element-plant" status="danger" />
      </si-notification-item>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="John shared a document"
        [description]="description"
        [itemLink]="itemLink"
        [primaryAction]="showPrimaryAction ? menu : undefined"
        [quickActions]="showQuickActions ? quickActionsLinks : undefined"
        [unread]="unread"
      >
        <si-avatar altText="John Doe" initials="JD" name="John Doe" />
      </si-notification-item>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="John reported an issue"
        [description]="description"
        [itemLink]="itemLink"
        [primaryAction]="showPrimaryAction ? menu : undefined"
        [quickActions]="showQuickActions ? quickActions : undefined"
        [unread]="unread"
      >
        <si-avatar altText="John Doe" initials="JD" name="John Doe" status="danger" />
      </si-notification-item>
    </div>
  </div>

  <div class="col">
    <h2 class="ps-6">Custom Action Integration</h2>
    <div>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="Approval Request"
        [description]="description"
        [unread]="unread"
      >
        <button
          quick-actions
          type="button"
          class="btn btn-icon btn-primary element-ok"
          aria-label="Approve request"
          (click)="logEvent('Approve request')"
        ></button>
        <button
          quick-actions
          type="button"
          class="btn btn-icon btn-secondary-danger element-cancel"
          aria-label="Reject request"
          (click)="logEvent('Reject request')"
        ></button>
      </si-notification-item>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="Meeting Invitation - Weekly team sync"
        [description]="description"
        [unread]="unread"
      >
        <button
          quick-actions
          type="button"
          class="btn btn-primary"
          (click)="logEvent('Accept meeting')"
          >Accept</button
        >
        <button
          quick-actions
          type="button"
          class="btn btn-secondary-danger"
          (click)="logEvent('Decline meeting')"
          >Decline</button
        >
      </si-notification-item>
      <si-notification-item
        timeStamp="Today at 11:45"
        heading="Project milestone reached"
        [description]="description"
        [unread]="unread"
      >
        <button
          action
          type="button"
          class="btn btn-circle btn-secondary element-light"
          aria-label="View achievement details"
          (click)="logEvent('View achievement')"
        ></button>
      </si-notification-item>
    </div>
  </div>
</div>

<div class="card mt-6 e2e-ignore">
  <div class="card-header">Interactive Demo Controls</div>
  <div class="card-body">
    <si-form-item class="col" label="Unread (indicator and emphasis)">
      <input type="checkbox" class="form-check-input" [(ngModel)]="unread" />
    </si-form-item>
    <div class="col d-flex">
      <si-form-item label="Display primary actions">
        <input type="checkbox" class="form-check-input" [(ngModel)]="showPrimaryAction" />
      </si-form-item>
      <si-form-item label="Display quick actions">
        <input type="checkbox" class="form-check-input" [(ngModel)]="showQuickActions" />
      </si-form-item>
    </div>
  </div>
</div>
```

### [SiNotificationItemComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L158-L194>)

**Kind:** component

**Selector:** `si-notification-item`

```
import { SiNotificationItemComponent } from '@siemens/element-ng/notification-item';
```

This component represents a single notification that can be used within notification centers, popovers, or other containers. It supports various action types including router links, standard links, action buttons, and menus.

```
component SiNotificationItemComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [description](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L172-L172>) | `TranslatableString \| undefined` |  | Optional translatable description. |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L168-L168>) (required) | `TranslatableString` |  | The heading of the notification item. |
| [itemLink](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L183-L183>) | `NotificationItemRouterLink \| NotificationItemLink \| undefined` |  | Link to the source or relevant information of the notification, which triggers when clicking on the notification item text area. |
| [primaryAction](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L191-L191>) | `NotificationItemPrimaryAction \| undefined` |  | Action that is displayed on the right side of the notification. |
| [quickActions](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L187-L187>) | `NotificationItemQuickAction[] \| undefined` |  | Actions that are displayed below the text of the notification. |
| [timeStamp](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L164-L164>) (required) | `TranslatableString` |  | The timestamp of the notification item. |
| [unread](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L178-L178>) | `boolean` | `false` | Unread messages are emphasized with a bolder font. |

### Types Documentation

### [NotificationItemLink](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L32-L36>)

**Kind:** interface

```
import type { NotificationItemLink } from '@siemens/element-ng/notification-item';
```

Interface for a standard link in a notification item.

```
interface NotificationItemLink
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L34-L34>) | `string` |  |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L35-L35>) (optional) | `string` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L33-L33>) | `"link"` |  |

### [NotificationItemPrimaryAction](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L131-L137>)

**Kind:** type alias

```
import type { NotificationItemPrimaryAction } from '@siemens/element-ng/notification-item';
```

Union type for primary actions in a notification item.

```
type NotificationItemPrimaryAction = | NotificationItemActionCircleButton
  | NotificationItemActionIconButton
  | NotificationItemLinkIcon
  | NotificationItemRouterLinkIcon
  | NotificationItemMenu
  | NotificationItemActionButton
```

### [NotificationItemQuickAction](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L122-L126>)

**Kind:** type alias

```
import type { NotificationItemQuickAction } from '@siemens/element-ng/notification-item';
```

Union type for quick actions in a notification item.

```
type NotificationItemQuickAction = | NotificationItemActionCircleButton
  | NotificationItemActionIconButton
  | NotificationItemLinkIcon
  | NotificationItemRouterLinkIcon
```

### [NotificationItemRouterLink](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L20-L24>)

**Kind:** interface

```
import type { NotificationItemRouterLink } from '@siemens/element-ng/notification-item';
```

Interface for a router link in a notification item.

```
interface NotificationItemRouterLink
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [extras](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L23-L23>) (optional) | `NavigationExtras` |  |
| [routerLink](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L22-L22>) | `string \| any[]` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L21-L21>) | `"router-link"` |  |

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

### [NotificationItemActionCircleButton](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L55-L59>)

**Kind:** interface

```
import type { NotificationItemActionCircleButton } from '@siemens/element-ng/notification-item';
```

Interface for an action circle button in a notification item.

Deprecated: Use NotificationItemActionIconButton instead. This will be removed in a future release.

```
interface NotificationItemActionCircleButton extends NotificationItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L58-L58>) | `(source: NotificationItemActionCircleButton) => void` |  |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L44-L44>) (inherited) | `TranslatableString` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [customClass](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L57-L57>) (optional) | `string` |  |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L45-L45>) (inherited) | `string` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L56-L56>) | `"action-circle-button"` |  |

### [NotificationItemActionIconButton](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L67-L71>)

**Kind:** interface

```
import type { NotificationItemActionIconButton } from '@siemens/element-ng/notification-item';
```

Interface for an action icon button in a notification item.

```
interface NotificationItemActionIconButton extends NotificationItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L70-L70>) | `(source: NotificationItemActionIconButton) => void` |  |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L44-L44>) (inherited) | `TranslatableString` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [customClass](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L69-L69>) (optional) | `string` |  |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L45-L45>) (inherited) | `string` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L68-L68>) | `"action-icon-button"` |  |

### [NotificationItemLinkIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L91-L95>)

**Kind:** interface

```
import type { NotificationItemLinkIcon } from '@siemens/element-ng/notification-item';
```

Interface for a standard link with an icon in a notification item.

```
interface NotificationItemLinkIcon extends NotificationItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L44-L44>) (inherited) | `TranslatableString` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L93-L93>) | `string` |  |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L45-L45>) (inherited) | `string` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L94-L94>) (optional) | `string` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L92-L92>) | `"link"` |  |

### [NotificationItemRouterLinkIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L79-L83>)

**Kind:** interface

```
import type { NotificationItemRouterLinkIcon } from '@siemens/element-ng/notification-item';
```

Interface for a router link with an icon in a notification item.

```
interface NotificationItemRouterLinkIcon extends NotificationItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L44-L44>) (inherited) | `TranslatableString` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [extras](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L82-L82>) (optional) | `NavigationExtras` |  |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L45-L45>) (inherited) | `string` | Inherited from [NotificationItemBase](<index.html#t:NotificationItemBase>) |
| [routerLink](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L81-L81>) | `string \| any[]` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L80-L80>) | `"router-link"` |  |

### [NotificationItemMenu](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L114-L117>)

**Kind:** interface

```
import type { NotificationItemMenu } from '@siemens/element-ng/notification-item';
```

Interface for a menu in a notification item.

```
interface NotificationItemMenu
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [menuItems](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L116-L116>) | `MenuItem[]` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L115-L115>) | `"menu"` |  |

### [NotificationItemActionButton](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L103-L107>)

**Kind:** interface

```
import type { NotificationItemActionButton } from '@siemens/element-ng/notification-item';
```

Interface for an action button in a notification item.

```
interface NotificationItemActionButton
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L106-L106>) | `(source: NotificationItemActionButton) => void` |  |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L105-L105>) | `TranslatableString` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L104-L104>) | `"action-button"` |  |

### [NotificationItemBase](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L43-L46>)

**Kind:** interface

```
import type { NotificationItemBase } from '@siemens/element-ng/notification-item';
```

Base interface for notification item actions.

```
interface NotificationItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L44-L44>) | `TranslatableString` |  |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/notification-item/si-notification-item.component.ts#L45-L45>) | `string` |  |

### [MenuItem](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L102-L111>)

**Kind:** type alias

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

```
type MenuItem = | MenuItemGroup
  | MenuItemAction
  | MenuItemRouterLink
  | MenuItemLink
  | MenuItemRadioGroup
  | MenuItemCheckbox
  | MenuItemRadio
  | MenuItemHeader
  | MenuDivider
```

### [MenuItemGroup](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L28-L32>)

**Kind:** interface

```
import type { MenuItemGroup } from '@siemens/element-ng/menu';
```

```
interface MenuItemGroup extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [children](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L31-L31>) | `MenuItem[]` | Submenu items for this menu item. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L29-L29>) | `"group"` |  |

### [MenuItemAction](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L34-L41>)

**Kind:** interface

```
import type { MenuItemAction } from '@siemens/element-ng/menu';
```

```
interface MenuItemAction extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L40-L40>) | `string \| ((actionParam: any, source: MenuItemAction) => void)` | Action that called when the item is triggered. A function will be called, a string will be dispatched to the [SiMenuActionService](<../../../api/siemens/element-ng/types/SiMenuActionService/index.html#t:SiMenuActionService>). |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L35-L35>) | `"action"` |  |

### [MenuItemRouterLink](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L48-L54>)

**Kind:** interface

```
import type { MenuItemRouterLink } from '@siemens/element-ng/menu';
```

Represents a menu item that navigates using the Angular Router.

Requires a configured Angular Router.

```
interface MenuItemRouterLink extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [extras](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L53-L53>) (optional) | `NavigationExtras` | Navigation extras that are passed to the [RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [routerLink](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L51-L51>) | `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/menu/si-menu-model.ts#L49-L49>) | `"router-link"` |  |

### [MenuItemLink](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L56-L62>)

**Kind:** interface

```
import type { MenuItemLink } from '@siemens/element-ng/menu';
```

```
interface MenuItemLink extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L59-L59>) | `string` | The href property of the anchor. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L61-L61>) (optional) | `string` | The target property of the anchor. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L57-L57>) | `"link"` |  |

### [MenuItemRadioGroup](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L64-L68>)

**Kind:** interface

```
import type { MenuItemRadioGroup } from '@siemens/element-ng/menu';
```

```
interface MenuItemRadioGroup
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [children](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L67-L67>) | `[MenuItemHeader, ...(MenuItemRadio \| MenuItemHeader \| MenuDivider)[]]` | Items that are part of the radio group. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L65-L65>) | `"radio-group"` |  |

### [MenuItemCheckbox](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L81-L90>)

**Kind:** interface

```
import type { MenuItemCheckbox } from '@siemens/element-ng/menu';
```

```
interface MenuItemCheckbox extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L89-L89>) | `string \| ((actionParam: any, source: MenuItemCheckbox) => void)` | Action that called when the item is triggered. A function will be called, a string will be dispatched to the [SiMenuActionService](<../../../api/siemens/element-ng/types/SiMenuActionService/index.html#t:SiMenuActionService>). |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [checked](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L84-L84>) | `boolean` | Whether the checkbox is checked. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L82-L82>) | `"checkbox"` |  |

### [MenuItemRadio](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L70-L79>)

**Kind:** interface

```
import type { MenuItemRadio } from '@siemens/element-ng/menu';
```

```
interface MenuItemRadio extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L78-L78>) | `string \| ((actionParam: any, source: MenuItemRadio) => void)` | Action that called when the item is triggered. A function will be called, a string will be dispatched to the [SiMenuActionService](<../../../api/siemens/element-ng/types/SiMenuActionService/index.html#t:SiMenuActionService>). |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [checked](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L73-L73>) | `boolean` | Whether the radio is checked. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L71-L71>) | `"radio"` |  |

### [MenuItemHeader](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L92-L96>)

**Kind:** interface

```
import type { MenuItemHeader } from '@siemens/element-ng/menu';
```

```
interface MenuItemHeader
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L95-L95>) | `string` | The label of the header. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L93-L93>) | `"header"` |  |

### [MenuDivider](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L98-L100>)

**Kind:** interface

```
import type { MenuDivider } from '@siemens/element-ng/menu';
```

```
interface MenuDivider
```

#### Properties

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

### [MenuItemBase](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L8-L26>)

**Kind:** interface

```
import type { MenuItemBase } from '@siemens/element-ng/menu';
```

```
interface MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional) | `string \| number` | Badge that is rendered after the label. |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional) | `string` | Color of the badge (not iconBadge). |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional) | `boolean` | Whether the menu item id disabled. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional) | `string` | Optional icon that will be rendered before the label. |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional) | `string` | ID that will be attached to the DOM node. |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) | `TranslatableString` | Label that is shown to the user. |
