component · platform-aware chrome
TuxMenuBar
In-window menu strip for Windows / Linux Tauri shells. The classic File / Edit / View / Help row anchored under the titlebar. On macOS, the component renders nothing — Mac users expect the system menu strip at the top of the screen (populate it via Tauri Rust config).
Detected host:
Detected host:
web. On Mac, pass renderOnMac to force the component to render anyway (useful for demos like this one). basic
Four-menu strip
Each menu definition has a label and items (array-of-arrays per UDropdownMenu convention — outer groups create divider sections). Shortcuts render via the same kbd grammar TuxKbd uses, so they get platform-correct labels automatically.
<tux-menu-bar :menus="menus" />when not to render
macOS skip
By default the component renders nothing on macOS / iOS. macOS users expect their menus at the **top of the screen** as a system strip — drawing a fake one in-window would conflict visually and feel non-native. Tauri's Rust side populates the system menu via the menu builder; on Win/Linux, this component is the fallback.