e id="myDialog3">
          <button slot="invoker">open</button>
          <div slot="content">
            <h1>Im used as a web component!</h1>
            <p>dialog content</p>
            <button id="closebtn3">close</button>
          </div>
        </generic-dialog>
      </div>

      <h2>Usage via JavaScript API:</h2>

      <div class="demo">
        <h3>Closes on escape, and outside click:</h3>
        <details>
          <summary>Show code</summary>
          <pre><code class="language-javascript"