# Footer

The **footer** provides legal information like copyrights and further links to legal artifacts to users.

## Usage

The footer is a part of an overarching concept for legal guidelines.

### When to use

The footer is mandatory in the following cases:

- On the [landing page](<https://element.siemens.io/components/pages/landing-page/>).
- On all other pages, where no [application header](<https://element.siemens.io/components/layout-navigation/application-header/>) is provided, which contains the legal information.

The footer **must not be used** on pages, where the [application header](<https://element.siemens.io/components/layout-navigation/application-header/>) is provided, and contains the legal information.

## Design

### Elements

The footer contains the `Copyright Notice` and a link list to (legal) artifacts.

![Footer construction](<../images/footer-usage-construction.png>)

> \\1.Link list, 2. Copyright notice

### Wide version

The wide representation of the footer has to be used if the `Copyright Notice` and the links **do have enough space** on a single line.

![Footer - Wide](<../images/footer-usage-wide.png>)

### Small version

The small representation of the footer has to be used if the `Copyright Notice` and the links **do not have enough space** on a single line. The `Copyright Notice` gets an own line always and a link must not contain a line break.

![Footer - Small](<../images/footer-usage-small.png>)

## Code

The `links` input allows 3 kinds of links.

- `action` perform a given function.
- `href` link to external websites.
- `link` link to an internal route.

The vertical padding of this component can be configured. Just set `$page-footer-padding` (Default: 13px) to your desired value.

### Usage

```
import { SiFooterComponent } from '@siemens/element-ng/footer';

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

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { SiFooterComponent } from '@siemens/element-ng/footer';

@Component({
  selector: 'app-sample',
  imports: [SiFooterComponent],
  templateUrl: './si-footer.html'
})
export class SampleComponent {}
```

Template:

```html
<si-footer
  copyright="Siemens 2016-2025"
  [links]="[
    {
      title: 'About',
      link: '/main/components/si-about'
    },
    {
      title: 'Corporate Information',
      href: 'http://www.siemens.com/corporate-information'
    },
    {
      title: 'Privacy Notice',
      href: 'http://www.siemens.com/privacy-notice'
    },
    {
      title: 'Terms of Use',
      href: 'http://www.siemens.com/terms-of-use'
    }
  ]"
/>
```

### [SiFooterComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/footer/si-footer.component.ts#L16-L25>)

**Kind:** component

**Selector:** `si-footer`

```
import { SiFooterComponent } from '@siemens/element-ng/footer';
```

```
component SiFooterComponent
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [copyright](<https://github.com/siemens/element/blob/main/projects/element-ng/footer/si-footer.component.ts#L20-L20>) (required) | `string` | Copyright of your application. |
| [links](<https://github.com/siemens/element/blob/main/projects/element-ng/footer/si-footer.component.ts#L24-L24>) | `Link[] \| undefined` | List of additional links. |

### Types Documentation

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

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