Banner
The banner component highlights important information or required actions. Use banners to communicate critical updates, warnings, informational messages, or success notifications that require merchant attention.
Banners provide persistent visibility. Use the hidden property to show or hide a banner programmatically.
Anchor to Use casesUse cases
- System alerts: Display alerts about maintenance, outages, or important updates.
- Error messages: Show critical errors like payment failures or connectivity issues.
- Success feedback: Communicate successful completion of actions like order processing or sync.
- Warnings: Alert merchants to low inventory, expired payments, or business-critical conditions.
Anchor to PropertiesProperties
Configure the following properties on the Banner component.
- stringstringDefault: ''Default: ''
The title text displayed prominently at the top of the banner. This is the only property for text content—body text content isn't supported. You can't place
<s-text>or other text elements as children.- booleanbooleanDefault: falseDefault: false
Whether the banner is visible or hidden. When set to
true, the banner will be hidden from view. Use this to programmatically show or hide banners based on app state.- stringstring
A unique identifier for the element used for targeting with CSS, JavaScript, or accessibility features.
- 'auto' | 'info' | 'success' | 'warning' | 'critical''auto' | 'info' | 'success' | 'warning' | 'critical'Default: 'auto'Default: 'auto'
Sets the visual appearance of the banner. The tone determines the color scheme. Available options:
'auto'- Lets the system automatically choose the appropriate tone based on context.'success'- Green styling for positive outcomes and successful operations.'info'- Blue styling for general information and neutral updates.'warning'- Orange styling for important notices that require attention.'critical'- Red styling for errors and urgent issues requiring immediate action.
Anchor to SlotsSlots
The banner component supports slots for additional content placement within the banner. Learn more about using slots.
- HTMLElementHTMLElement
The primary action element displayed within the banner, typically a button. Use this slot to provide interactive elements that allow users to respond to the banner's message, such as "Dismiss," "Learn More," or "Retry" buttons.
Anchor to ExamplesExamples
Display messages with headings and severity tones. This example shows every tone side by side; in production, show one banner at a time.
Display important messages with a banner

Display important messages with a banner
Anchor to Best practicesBest practices
- Apply appropriate tones: Use
criticalfor errors requiring immediate action,warningfor important notices,successfor confirmations,infofor general information. - Keep headings concise: Write brief headings that clearly communicate the message.
- Show one banner at a time: Display only one banner to avoid overwhelming the interface. Prioritize by importance.
- Include clear actions: If action is needed, use the
primaryActionslot to provide clear next steps. - Use for persistent messages: Use banners for messages that need to persist. For temporary notifications, consider toast notifications.