Skip to content

<sessions-disclosure-group>

Stacks sessions-disclosure rows with dividers between them.

Preact & React<DisclosureGroup>GroupActionsDrawn asDisclosureGroup

Preview

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