);
    }
  });
});
          </code></pre>
        </details>
        <hr />
        <button id="defaultExample">open</button><br />
      </div>

      <div class="demo">
        <h3>Closes on escape:</h3>
        <details>
          <summary>Show code</summary>
          <pre><code class="language-javascript">
import { dialog } from '@generic-components/components';
closeOnEscape.addEventListener('click', (e) => {
  dialog.open({
    invokerNode: e.target,
    closeOnOutsideClick: false,
    content: (dia