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

Imperative handle returned by enhanceMenu.

Type declaration

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

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

  • Readonlyvalue: string | null

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