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 with support for dismissible and non-dismissible states.
Supported targets
- pos.
cart. line-item-details. action. render - pos.
customer-details. action. render - pos.
draft-order-details. action. render - pos.
exchange. post. action. render - pos.
home. modal. render - pos.
order-details. action. render - pos.
product-details. action. render - pos.
purchase. post. action. render - pos.
register-details. action. render - pos.
return. post. action. render
Supported targets
- pos.
cart. line-item-details. action. render - pos.
customer-details. action. render - pos.
draft-order-details. action. render - pos.
exchange. post. action. render - pos.
home. modal. render - pos.
order-details. action. render - pos.
product-details. action. render - pos.
purchase. post. action. render - pos.
register-details. action. render - pos.
return. post. action. render
Use 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 examplesExamples
Display important messages using a Banner component with automatic color coding based on message severity. This example shows a basic banner with a heading and descriptive text.
Display important messages with a banner

Display important messages with a banner
Examples
Display important messages with a banner
Description
Display important messages using a `Banner` component with automatic color coding based on message severity. This example shows a basic banner with a heading and descriptive text.
Default
<s-banner heading="Marked as delivered" tone="success"> <s-button slot="primary-action">Dismiss</s-button> </s-banner> <s-banner heading="Ready for shipping" tone="info"> <s-button slot="primary-action">Dismiss</s-button> </s-banner> <s-banner heading="Couldn't restock items" tone="warning"> <s-button slot="primary-action">Dismiss</s-button> </s-banner> <s-banner heading="Action failed. Contact developer" tone="critical"> <s-button slot="primary-action">Dismiss</s-button> </s-banner>
Anchor to propertiesProperties
Configure the following properties on the Banner component.
- Anchor to headingheadingheadingstringstringDefault: ''Default: ''
The title of the banner.
- booleanbooleanDefault: falseDefault: false
Determines whether the banner is hidden.
- Anchor to idididstringstring
A unique identifier for the element.
- Anchor to tonetonetone"auto" | "info" | "success" | "warning" | "critical""auto" | "info" | "success" | "warning" | "critical"Default: 'auto'Default: 'auto'
Sets the tone of the Banner, based on the intention of the information being conveyed.
Anchor to slotsSlots
The Banner component supports slots for additional content placement within the banner. Learn more about using slots.
- Anchor to primary-actionprimary-actionprimary-actionHTMLElementHTMLElement
The action taken when the Banner is pressed.
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. Use the collapsible feature for additional detail.
- Show one banner at a time: Display only one banner to avoid overwhelming the interface. Prioritize by importance.
- Make non-critical banners dismissible: Allow dismissal for non-critical information. Keep critical alerts non-dismissible until resolved.
- Include clear actions: If action is needed, use the primaryAction slot to provide clear next steps.
- Use for persistent messages: Use banners for messages that need to persist. For temporary notifications, consider toast notifications.