The foundational building blocks. A summary acts as the visible trigger, while content holds information that appears on interaction.
Progressive disclosure is an interaction design pattern that sequences information and actions across several screens to reduce feelings of overwhelm. The idea is to show only essential information at first, providing additional details on demand.
The chevron rotates 90 degrees when expanded, providing a clear directional cue.
Plus transforms to minus when expanded. Common in FAQ patterns and form builders.
Arrow rotates 180 degrees when expanded. Often used in dropdown-style disclosures.
No visual indicator. The summary text itself acts as the affordance. Useful when the interaction is implicit from context.
open attribute to start expanded.This disclosure starts in the open state. Click the summary to collapse it, then click again to re-expand with animation.
<details class="disclosure disclosure--indicator-chevron" data-animated>
<summary class="disclosure__summary">
<span class="disclosure__indicator" aria-hidden="true"></span>
<span class="disclosure__label">Click to expand</span>
</summary>
<div class="disclosure__content">
<div class="disclosure__content-inner">
<p>Hidden content here</p>
</div>
</div>
</details>
<script src="@disclosures/core/dist/index.global.js"></script>
<script>Disclosures.autoInit();</script>