<sessions-badge>
A small status label.
Preact & React
<Badge>GroupActionsDrawn asTagPreview
Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.
When to use it
A compact tag beside a title or in a row.
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
toneThe badge tone.
accenthighlightpositiveattentioninfocelebrationcautionProp toneExample
import {Badge} from '@sessions/apps/preact';
<Badge tone="positive">Connected</Badge>In the same group
<sessions-button>A button, or a link styled as one when to is set.<sessions-banner>A callout with a heading and a body.<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.