Enode — API Reference
    Preparing search index...

    Function MenuPopover

    • A popover panel under triggerRef, its right edge on the trigger's.

      Parameters

      • label: {
            children: ReactNode;
            label: string;
            onClose: () => void;
            open: boolean;
            triggerRef: RefObject<HTMLElement | null>;
            width?: number;
        }

        The dialog's accessible name (usually the title row's text).

      Returns ReactPortal | null

      The caller owns open and its trigger. A press outside the panel and the trigger, or Escape, calls onClose; Escape also puts the focus back on the trigger. The panel follows the trigger while the page scrolls or resizes.