Mobile Navigation
The Sidebar’s pages in a left drawer for tablets and phones.
import { MobileNavigation } from "@sagui/ui";Loading demo
When to use
- Opened from AppBar’s menu button below 1024px.
When not to use
- AppShell already includes it. Use it directly only with a custom layout.
Installation
Install the package and import the styles once. The installation guide covers the Tailwind setup.
$ npm install @sagui/uiUsage
import { MobileNavigation } from "@sagui/ui";
<MobileNavigation open={open} onOpenChange={setOpen} title="Acme" nav={nav} currentHref={pathname} />Accessibility
- A modal drawer: focus is trapped inside and returns to the menu button on close.
- Escape, the close button, a tap outside or choosing a page closes it.