Intro
The message strip component displays application-related messages directly within the interface. It draws attention to important information, such as warnings or status changes, that might otherwise go unnoticed. The message strip component can be embedded within the header or detail area of an object or page, or it might apply only to a single component (for example, a table).
Message strip
Component availability
This component is available in the following libraries:
When to Use
Use the message strip to:
- Display messages that apply to either the entire page or a specific section, such as an object header.
- Inform users about the status of an object, such as a process, item, or workflow.
- Display a warning message to alert users to an issue.
Don’t use the message strip to:
- Display information within another component (for example, a table cell or list item), or to apply the component to another small element.
- Request decisions or immediate user actions. Use a dialog instead.
- Communicate issues related to a specific input or form element. Use the component’s value state instead.
- Place message strips close to relevant content to avoid interrupting the user flow.
- Use value states consistently so users can understand the urgency and nature of each message.
- Show an icon to identify the message type.
- Include a Close button when the message is persistent or requires user dismissal.
- Keep text simple and concise, use formatting only when you need to emphasize or add hyperlink text.
- Add a custom icon when you need to communicate specific meaning not covered by standard value states.
- Apply a custom background color when you need to highlight special message types or match application branding.
- Ensure the message strip adapts responsively, keeping the icon on the left, the Close button on the right, and letting text wrap naturally.
Anatomy
- Container: Holds the icon, message text, and Close button.
- Icon (optional): Visual indication of the message type. By default, the message strip uses standard icons for negative, critical, positive, and information messages.
- Text: Displays the main message content.
- Close button (optional): Lets users dismiss the message strip.
Anatomy of a message strip
Types
Message strip with or without icon
A message strip can be displayed with or without an icon, depending on the context and importance of the message. Including an icon helps users quickly recognize the message type.
Message strip with and without icon
Message strip with or without “Close” button
A message strip can appear with or without a Close button. Use the Close button for temporary or informational messages that users can remove, and omit for persistent messages that convey ongoing status or important system information.
Message strip with and without “Close” button
Message strip with or without formatted text
A message strip can include plain or formatted text. Keep messages simple and concise in both cases. Use formatting, such as bold text or inline links only to emphasize key details, not to add complexity.
Below is an additional example to the formatted text to illustrate that links can be added to the message text.
Message strip with and without formatted text
Message strip with custom icon
A message strip can include a custom icon to represent a specific status or industry-related context not covered by the standard value states. You can use a custom icon when you need to convey a unique meaning or align the message with application-specific semantics.
Message strip with custom icon
Message strip with custom background
Use a custom background color when you need to distinguish special message types or align with app-specific branding. For additional options, see the [internal_only]indication colors[/internal_only] [external_only]indication colors[/external_only] palette.
Message strip with custom background color
States
Value states
The message strip supports four value states: Negative, Critical, Positive, and Information. Value states appear with a specific color and icon to convey their meaning. Unlike other components, message strips always have a value state.
A. Negative: Indicates that an error has occurred, possibly guiding users to take corrective action.
B. Critical: Alerts users to potential issues that may require attention but are not errors. Users can typically continue but might run into issues later.
C. Positive: Confirms that a user action or system process has been successfully completed.
D. Information: Displays general information or guidance that is not critical but can help users complete their tasks.
Message strip value states
For more information, see Value States.
Focus state
Message strip focus state
For more information, see Focus States.
Behavior and Interaction
The user can dismiss a message strip from the application's UI by clicking the Close button located on the right-hand side. On mobile devices, the tap gesture is used for dismissal instead of mouse interaction.
Responsiveness
The message strip adapts to different layouts and screen sizes. Icons remain on the left and the Close button on the right, while text wraps automatically.
If you place the message strip within the detail area for an object, it always uses 100% of the available width and reacts to the responsiveness of the container.
Message strip – web and mobile appearance
Accessibility
SAP follows international standards, such as WCAG and WAI-ARIA, and strives to make our business solutions accessible and inclusive.
For more information, see Accessibility in SAP Fiori and the Accessibility Design Tools Handbook.
Keyboard navigation
The following keyboard combinations are supported by the SAPUI5 message strip component.
Screen reader support
For details on screen reader support and Accessible Rich Internet Applications (ARIA), see UI5 Screen Reader Support and WAI-ARIA Authoring.
Content
Text
Messages should be simple and concise. Keep the following principles in mind when formulating message texts. For more information, see UI Text Guidelines for SAP Fiori Apps – Messages.
Link
All link types (regular, emphasized, subtle, and so on) can be used in the message strip component. Choose the link variant that best fits your use case. However, for a custom message strip using the extended palette, the subtle link is the recommended type. For more information, see Link.
Localization
The message strip supports both left-to-right (LTR) and right-to-left (RTL) languages layout helping users to read and interact naturally. In RTL layouts, the positions of the leading icon and the trailing Close button are flipped to match the reading direction (icon on the right, Close on the left).
Left-to-right message strip
Right-to-left message strip
Framework Comparison
There are no differences between SAPUI5 and SAP Web Components regarding the component's behaviors and framework-specific patterns.
Related Links
Guidelines
Implementation
SAPUI5
Message Strip (samples)
Message Strip (API reference)
SAP Web Components
Message Strip
Guidelines
Implementation
SAPUI5
Message Strip (samples)
Message Strip (API reference)
SAP Web Components
Message Strip
UI Kit (Figma)
SAP Fiori for Web UI Kit / Message Strip