SimpleWiki

Accordions

The accordion component allows you to organize large amounts of content into expandable sections.

Only one section is expanded at a time, making long pages easier to read.


Basic Usage

::accordion

:::div{title="First Section"}

This is the content of the first section.

:::

:::div{title="Second Section"}

This is the content of the second section.

:::

::

Result:

This is the content of the first section.


Multiple Sections

You can add as many accordion items as needed.

::accordion

:::div{title="Installation"}

Installation instructions go here.

:::

:::div{title="Configuration"}

Configuration options go here.

:::

:::div{title="Troubleshooting"}

Common issues and solutions.

:::

::

Result:

Installation instructions go here.


Markdown Support

Accordion items support all normal Markdown and SimpleWiki components.

::accordion

:::div{title="Important"}

::info-box{type="important"}

Always create a backup before updating.

::

You can also use :highlight[highlighted text] or :badge{type="new"}.

:::

::

Result:

Always create a backup before updating.

You can also use highlighted text or New.


Default State

The first accordion item is expanded by default.

Clicking another section will automatically close the currently opened one.