MessageStrip
The ui5-message-strip
component enables the embedding of app-related messages.
It displays 4 designs of messages, each with corresponding semantic color and icon: Information, Positive, Warning and Negative.
Each message can have a Close button, so that it can be removed from the UI, if needed.
Usage​
For the ui5-message-strip
component, you can define whether it displays
an icon in the beginning and a close button. Moreover, its size and background
can be controlled with CSS.
Keyboard Handling​
Fast Navigation​
This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].
In order to use this functionality, you need to import the following module:
import "@ui5/webcomponents-base/dist/features/F6Navigation.js"
ES6 Module Import​
import "@ui5/webcomponents/dist/MessageStrip.js";
Basic Sample​
Properties​
design​
hideIcon​
hideCloseButton​
Slots​
default​
icon​
Events​
close​
Methods​
No methods available for this component.
CSS Parts​
No CSS parts available for this component.
More Samples​
Design​
Hide Icon and Close Button​
Use hideIcon and hideCloseButton properties to hide some parts of the MessageStrip.