/
The .collapse function creates an interactive collapsible block that users can toggle by clicking.
The function requires an inline title, which is always displayed, and block content, which appears when expanded.
.collapse {A _collapsible_ block. **Click me!**}
You found this hidden content.
**Surprise!**You found this hidden content.
Surprise!
You can change the initial state of the block using the optional open Boolean argument, which defaults to false (collapsed).
.collapse {A _collapsible_ block. **Click me!**} open:{yes}
Not so hidden content anymore!Not so hidden content anymore!