Collapse Shortcode
The collapse shortcode allows you to create expandable/collapsible sections in your content without JavaScript.
Usage
| |
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
| title | No | Click to expand | Text displayed on the clickable summary |
| open | No | false | Whether the collapse section is open by default (`true` or `false`) |
| Inner content | Yes | - | The content inside the collapse block, supports Markdown |
Examples
Basic Collapse (Closed by Default)
Click to expand
This content is hidden until you click the summary.
Collapse Open by Default
Read me
This content is visible by default.
Using Markdown Inside Collapse
Markdown Example
- Item 1
- Item 2
- Bold text and italic text
| |