Open this example in the interactive library
Source code
<style>
.demo {
height: auto;
overflow: visible;
max-width: 25ch;
}
</style>
<details class="demo">
<summary>Expand this note</summary>
<p>The section grows when opened.</p>
</details>