Inline notification¶
Inline notifications show up in the task flow to provide feedback or the status of an action. These notifications are task generated. They are persistent in nature and vanish after the issue is resolved by user.
Usage¶

When to use¶
- Use inline notifications to show quick and precise feedback or status during the task flows.
- Use to notify status or feedback based on information, warning, success and danger.
- Usual places its usage are input fields like forms to show errors etc.
Best practices¶
- Messaging should be context-based, short and concise.
- Do not overlap rest of the content.
- These are scrollable along with the other content on the screen.
Formatting¶
The notification width varies based on the context and page layout. Their height is based on the content length, which should not exceed two lines of text. Some examples of layouts are form, right pane, banner etc.

Design¶

- Icon: Informs users about the severity of a notification.
- Heading: Gives users a quick overview of the notification (optional).
- Message: Provides additional details of the notification.
- Action: Area to take actions like canceling or resolving a notification (optional).
Action button¶

- No action: Information only.
- Action: Provides an action button.
Notification types¶

Code¶
This component is used to bring attention of users to a result of some action. There are multiple options of what is the notification level: information, success, caution, warning, danger and critical.
Usage¶
import { SiInlineNotificationComponent } from '@siemens/element-ng/inline-notification';
@Component({
imports: [SiInlineNotificationComponent, ...]
})
import { SiInlineNotificationComponent } from '@siemens/element-ng/inline-notification'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| action ¶ | Link | undefined | Optional link action for inline notification events. | |
| embedded ¶ | boolean | false | Displays in embedded style, w/o radius and indicator bar |
| heading ¶ | TranslatableString | undefined | Heading of the message. | |
| message required ¶ | TranslatableString | Main message of this inline notification. | |
| severity required ¶ | StatusType | Status of inline notification. | |
| translationParams ¶ | { [key: string]: any; } | undefined | {} | Params passed to the translation pipe |
Types Documentation¶
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. A boolean that lets the link know whether it is disabled or not. 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. A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route. Defines the link of the menu item within the application using the angular router link concept. Accepts an array of The target attribute specifies where to open the linked document. If no target is specified, the link will open in the current tab. The title of the menu item. Can be either the title to be displayed or the translation key. title ? : The optional tooltip of the link. Can be either the text to be displayed or the translation key.
any as per [routerLink API definition]https://angular.dev/api/router/RouterLink.TranslatableString ¶
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.
Except where otherwise noted, content on this site is licensed under MIT License.