Phone menu
The phone and tablet menu that opens from the left: the logo, the product search, the pages, the categories, the light/dark mode button and the language.
zb:shop.mobile-menu zubazar/ui-pro
This component is in Zubazar UI Pro; Zubazar UI Pro brings Zubazar UI with it. Installing Zubazar UI Pro →
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
logo | — | default | The logo's style: default (Nova) · modern (Vivid) · classic (Atelier) |
Developer notes
- The ready-made navbar presets use a drawer of their own instead, which drills down into the sub-menus.
- The menu button is hidden on wide screens (
lg); Esc or a click on the backdrop closes the drawer. - The drawer is named
web-menu; the product search goes to theweb.products.indexroute withq, and the mode button is<zb:theme-switcher />. - To open the drawer with another button, wrap that button in
<zb:drawer.trigger name="web-menu">; the trigger addsaria-haspopupand anaria-expandedthat follows the drawer. - The
activepage is highlighted in the primary colour and getsaria-current="page". BaseStorefrontgives Home, Products, Categories and Deals as the pages; a store with one language draws no language switcher.