OptionaldefaultValue?: string | nullValue of the submenu to open on enhance. Submenu values come from
data-hl-value on each top-level trigger, defaulting to the index.
OptionalonSelect?: (value: string, item: HTMLElement, checked?: boolean) => voidCalled with the item's value when a leaf menu item is activated. For
menuitemcheckbox/menuitemradio items, checked is the new state.
OptionalonValueChange?: (value: string | null) => voidCalled with the open top-level submenu's value (or null) after every change.
Optionalorientation?: "horizontal" | "vertical"Layout of the top-level menu. Defaults to horizontal (menubar).
Optionalposition?: booleanRun the JS positioning fallback when CSS anchor positioning is missing. Defaults to true.
Options for enhanceMenu.