Skip to main content

Banner

Use s-banner to display important information or messages to merchants. Banners communicate critical updates, warnings, or success messages in a prominent way.

string
Default: ''

The title of the banner.

boolean

Determines whether the banner is hidden.

string

A unique identifier for the element.

'info' | 'success' | 'warning' | 'critical'

Sets the tone of the Banner, based on the intention of the information being conveyed.

Was this section helpful?

HTMLElement

The action taken when the Banner is pressed.

Was this section helpful?

Code

<s-banner heading="Label" tone="success">
<s-button slot="primary-action">Action</s-button>
</s-banner>

<s-banner heading="Label" tone="info">
<s-button slot="primary-action">Action</s-button>
</s-banner>

<s-banner heading="Label" tone="warning">
<s-button slot="primary-action">Action</s-button>
</s-banner>

<s-banner heading="Label" tone="critical">
<s-button slot="primary-action">Action</s-button>
</s-banner>

Preview