Enode — API Reference
    Preparing search index...

    Function DialogShell

    • The shared modal frame: a dimmed backdrop and a centred, rounded, shadowed panel. ConfirmDialog and every hand-built dialog draw this frame, so they look and behave alike.

      Parameters

      Returns Element | null

      • Fades in and out (DIALOG_FADE_MS); on close it stays mounted and inert for that long. A caller whose children depend on what was open should keep them until then, or the panel empties while it fades.
      • Rendered in a body portal with position: fixed (unless containment is "container"), so it escapes a host drawer's overflow clip or transform.
      • Takes the focus while open, keeps Tab inside the panel, and gives the focus back to the opener on close (useModalFocus).
      • Escape calls onClose — only in the top-most open shell, and not when the key comes from a nested open menu/picker. The keypress is consumed, so a hosting drawer's own Escape handler does not also fire. To block closing (e.g. while a request runs), ignore the call in onClose.
      • Renders nothing while open is false.