Native Navigation
A webview navigation shell that becomes a desktop rail or mobile bottom bar in a packaged Rahti application.
src/components/rahti_ui/native_navigation.rs
Installation
Install this component in your Rahti 0.0.58 application. Class conflicts are resolved with the existing frontend `twMerge`; no Rust class-merging dependency is needed.
Terminal
Packaged-host behavior
This page continues to use the ordinary documentation sidebar in a browser. In a Rahti native package, the component detects the injected native bridge: Windows and other desktop hosts show the icon rail at the left; Android and a future iOS host show the bottom bar.
The visible control remains HTML in the operating system WebView. Rahti packaging does not compile this into Android, iOS, or Windows system menu widgets.
Use it around a dashboard
<NativeNavigationShell>
<NativeNavigation aria_label="Dashboard navigation">
<NativeNavigationList>
<NativeNavigationItem href="/dashboard" label="Overview" active>
<Grid2x2 />
</NativeNavigationItem>
<NativeNavigationItem href="/settings" label="Settings">
<Settings2 />
</NativeNavigationItem>
</NativeNavigationList>
</NativeNavigation>
<NativeNavigationContent>
<main>…dashboard…</main>
</NativeNavigationContent>
</NativeNavigationShell>