MAIDR Documentation - v3.75.0
    Preparing search index...

    The ref and container value a disablePortal MUI modal needs to keep itself inside the accessibility tree.

    interface ModalContainer {
        modalRef: RefCallback<HTMLElement>;
        container: () => HTMLElement | null;
    }
    Index

    Properties

    Properties

    modalRef: RefCallback<HTMLElement>

    Ref for the modal root element — <Dialog ref={...}> or the ref inside a MenuProps / slotProps.root object.

    container: () => HTMLElement | null

    Value for MUI's container prop.