EnhanceMenuOptions: {
    onOpenChange?: (value: string | null) => void;
    onSelect?: (value: string, item: HTMLElement) => void;
    orientation?: "horizontal" | "vertical";
}

Options for enhanceMenu.

Type declaration

  • OptionalonOpenChange?: (value: string | null) => void

    Called with the open submenu's value (or null) after every change.

  • OptionalonSelect?: (value: string, item: HTMLElement) => void

    Called with the item's value when a leaf menu item is activated.

  • Optionalorientation?: "horizontal" | "vertical"

    Layout of the top-level menu. Defaults to horizontal (menubar).