Banner
Keep page-wide information visible at the top of the screen.
Usage guide
#Use for page-wide notices, such as maintenance or important policies. Toast is better for brief completion feedback.
- Key message
- Put the main point in
headerand details inmessage. - Follow-up action
- Place a related action in the
footerslot. Enableclosableonly for notices users may dismiss.
Examples
#Feature examples
#Choose a feature from 10 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-banner-message>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
boolean | false | Show the close button. | |
boolean | false | Show the status icon. | |
string | '' | SVG string for the neutral state. | |
string | '' | Help text about the input state. | |
string | '' | Notification title. | |
'info' | 'success' | 'warning' | 'error' | 'neutral' | 'info' | Component display style. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. | |
| Content displayed in the footer area. |