Expand Sections

Description

Expand sections provide collapsible/expandable content areas that help organize information and reduce visual clutter. Users can click to show or hide the content, making documents more navigable and focused. Supports rich content including text, lists, code blocks, and nested elements.

.md markdown syntax

Basic Expand Section

~~~expand title="Click to expand this section"
This content is hidden by default and revealed when clicked.
It supports **rich formatting** and [links](https://example.com).
~~~

Expand with Custom Attributes

<!-- adf:expand defaultOpen="true" titleColor="#0052cc" -->
~~~expand title="Auto-opened Section"
This expand section opens automatically with a blue title.
~~~

HTML Details Syntax (Alternative)

<details>
<summary>Click to expand this section</summary>

This content is hidden by default.

</details>

Nested Expand Sections

.adf-schema.json schema

Examples

Basic Expand

Auto-Expanded Section

Expand with Rich Content

CSS:

Authorization: Bearer your-api-key

Styled Expand Section

Last updated