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.
Dos and don'ts¶
- 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.
Where Inline Notifications may not help¶
These are not recommended to use for providing severe level feedbacks.
Design¶
- Icon: Informs users about the severity of a notification.
- Title: Gives users a quick overview of the notification (optional).
- Body Content: Provides additional details of the notification.
- Action Button: Area to take actions like canceling or resolving a notification (optional).
Title and Body Content¶
A user should be able to quickly understand the notification and know what to do next.
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: danger
, warning
, information
and success
.
Usage¶
import { SiInlineNotificationComponent } from '@siemens/element-ng/inline-notification';
@Component({
imports: [SiInlineNotificationComponent, ...]
})
Except where otherwise noted, content on this site is licensed under MIT License.