StoreNavigation
Higher-level storefront navigation shell for logo placement, structured top-level sections, mega-menu groupings, action-area composition, and mobile drawer extras without rebuilding the header family from raw parts each time.
Best for
Import
import { StoreNavigation } from "@enadhq/enad-react-sdk/client/storefront"When to use it
Use StoreNavigation when the app wants the main storefront navigation shell to be easy to author through data and one open action-area seam.
That usually means:
- the logo, top-level sections, and mobile drawer should come as one supported surface
- the desktop mega-menu needs grouped browse columns without hand-assembling
PrimaryNav+MegaMenuevery time - the action area needs to stay open enough for brand-specific structure without dragging app-specific behavior into the public data contract
- the page needs route-aware highlighting for the current top-level browse path
Public contract
StoreNavigation keeps the public data model intentionally moderate:
logo— brand mark or brand wordmark contentsections— top-level navigation sections with optional grouped desktop panel contentactions— open React seam for the action areamobileDrawerExtra— bottom-of-drawer support contentvariant— shared header visual treatment (default,transparent,overlay)currentHref— optional current route for active-state highlighting
Each section can stay simple:
- plain top-level destination with just
labelandhref - grouped mega-menu owner with
groups - emphasis marker for sections or links that need a slightly stronger visual role
Relationship to HeaderSection and StoreHeader
HeaderSection— use it when the page wants the broader section-first header with promo and utility zones included.StoreNavigation— use it when the page mainly needs the primary navigation shell, action area, and mobile drawer extras.StoreHeader+ family parts — use them when the shell anatomy itself needs lower-level composition control.
That ordering is intentional: start with the highest public surface that already matches the job.
Behavior and theming guidance
StoreNavigation is built on the existing header family rather than replacing it.
That means it keeps:
- the shared fixed-shell behavior
- the existing transparent and overlay variants
- the same mobile drawer model beneath
MobileNav - the same desktop panel behavior beneath
PrimaryNavandMegaMenu
If the shell needs promo hierarchy, utility rows, or several unrelated custom zones, step either up to HeaderSection or down to StoreHeader depending on which shape is closer.
Examples
Live examples you can edit directly in the sandbox.
Structured store navigation
Use StoreNavigation when the app wants a clearer public API for the main navigation shell without taking on the full HeaderSection contract.
Action-led fashion navigation
The action area stays open as React content, so fashion-style link-plus-icon clusters fit without expanding the data contract.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| logo | string | — | No description yet. |
| sections | StoreNavigationSection[] | — | No description yet. |
| actions | string | — | No description yet. |
| logoHref | string | / | No description yet. |
| mobileDrawerExtra | string | — | No description yet. |
| variant | string | default | No description yet. |
| currentHref | string | — | No description yet. |
| matchStrategy | string | prefix | No description yet. |
| labels | string | — | No description yet. |
| className | string | — | No description yet. |