suiss/ui · Block
Nav Global
A sticky global navigation bar with mega-menu panels, search and bag actions, above a sample product hero.
Nav Global is an open-source block from suiss/ui for React. The @esuiss/ui CLI copies its source into your project, so you own the code.
A sticky top navigation bar with mega-menu panels, a brand link and search and bag buttons, shown above a sample hero. The bar is translucent and blurred, turns solid while a panel is open, and collapses into a full-screen menu on mobile or whenever the links don't fit. Built on the Navbar pattern, it suits sites with a deep catalog or many sections.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
- Install the dependencies:
- Update the import paths to match your project.
Usage
Edit items: plain entries take a label and href, and mega-menu entries take columns, each with a label, an optional featured flag and a list of links. Replace the brand link and hash URLs, and give the search and bag buttons handlers. Remove the sample hero below the bar.
Notes
The hero image is an Unsplash placeholder.