Native disclosure lets a reader reveal an answer without a custom state machine. The summary should still describe what will be revealed.
Worked example
<div class="box stack">
<p class="kicker">Flash card</p>
<h2>What is a baseline?</h2>
<details>
<summary>Reveal answer</summary>
<p>The imaginary line on which letters sit.</p>
</details>
</div>Implementation notes
Do not hide required instructions exclusively behind a closed answer card. A disclosure is most useful for optional detail or a deliberate reveal exercise.
Try it yourself
Toggle it with Enter and Space and inspect keyboard focus.
Open the UI Components example →Editorial date September 14, 2025 · Published December 6, 2026