// Expand/collapse section using native <details> (no JS).
component Disclosure {
  props {
    summary = "Details"
    class = ""
  }
  view {
    <details class="wire-disclosure {class}">
      <summary class="wire-disclosure__summary">{summary}</summary>
      <div class="wire-disclosure__body"><slot></slot></div>
    </details>
  }
}
