Open by Default

Details can be expanded by default using the open attribute or global configuration.

Per-Element Configuration

::: {.details open="true"}
This content is visible immediately.
:::
This is open by default

This content is visible immediately.

This is closed by default

This content is hidden until clicked.

Global Configuration

Set all details to open by default:

---
extensions:
  details:
    interactive:
      open: true
---

Override Global Setting

When globally open, close specific elements with open="false":

::: {.details summary="Stays closed" open="false"}
Hidden despite global setting.
:::