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

      <div class="demo">
        <h3>Usage as web component, closes on escape:</h3>
        <details>
          <summary>Show code</summary>
          <pre><code class="language-markup"><script type="prism-html-m