<sessions-banner>
A callout with a heading and a body.
Preact & React
<Banner>GroupActionsDrawn asBannerPreview
Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.
When to use it
For a status the reader should notice: an outage, a success, a warning. Keep the body to a sentence.
In Preact and React, import the component of the same name from @sessions/apps/preact or @sessions/apps/react. Attributes become camelCase props, a boolean attribute is a boolean prop, and an event is an on prop that receives the event’s detail.
Attributes
Attribute
headingrequiredThe bold leading label.Prop
headingtoneThe banner tone.
infopositivecriticalcelebrationProp toneExample
import {Banner} from '@sessions/apps/preact';
<Banner heading="Playlist saved" tone="positive">
Buyers see it on the session sheet.
</Banner>In the same group
<sessions-button>A button, or a link styled as one when to is set.<sessions-badge>A small status label.<sessions-image>An image with an accessible description.<sessions-embed>A Spotify, Apple Music or YouTube player in a sandboxed frame.<sessions-disclosure-group>Stacks sessions-disclosure rows with dividers between them.<sessions-disclosure>A row that expands to reveal its children.