>
import { dialog } from '@generic-components/components';
defaultExample.addEventListener('click', (e) => {
  dialog.open({
    invokerNode: e.target,
    content: (dialogOverlayNode, dialogNode) => {

      dialogOverlayNode.innerHTML = 'default example, closes on escape, and on outside click';

      const button = document.createElement('button');
      button.innerHTML = 'close';

      button.addEventListener('click', () => {
        dialog.close();
      })

      dialogOverlayNode.appendChild(button