# Orientation Toggle

ONE menu instance driven through its two layout axes. Unlike Variants.ts - which mounts two separate menus side by side - this keeps a single instance and calls setMode() / setSubmenuMode() on it, so the selection, the expanded submenu and the click handler all survive each switch. Switch to horizontal/vertical → orientation Submenu: inline/flyout        → where children open, independent of the above The four combinations are the point: vertical+inline is a sidebar tree, vertical+flyout is a context-menu panel, horizontal+flyout is a dropdown bar, horizontal+inline is a sub-bar.
