<sessions-disclosure-group>
Stacks sessions-disclosure rows with dividers between them.
Preact & React
<DisclosureGroup>GroupActionsDrawn asDisclosureGroupPreview
Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.
When to use it
Wrap a set of disclosures — one per service, one per option — so they read as one list.
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.
Example
import {DisclosureGroup, Disclosure} from '@sessions/apps/preact';
<DisclosureGroup>
<Disclosure title="Spotify" subtitle="Connected">…</Disclosure>
<Disclosure title="YouTube" subtitle="Not connected">…</Disclosure>
</DisclosureGroup>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-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>A row that expands to reveal its children.