MenuApi: { open: string | null; setOpen: (value: string | null) => void }

Imperative handle returned by enhanceMenu.

Type declaration

  • Readonlyopen: string | null

    Value of the currently open submenu, or null when all are closed.

  • setOpen: (value: string | null) => void

    Open the submenu with value (closing any other), or pass null to close.