StoreHeader
Public family root for the storefront navigation shell. Use it when the app needs lower-level control than HeaderSection while still staying inside the supported navigation family.
Best for
Import
import { StoreHeader } from "@enadhq/enad-react-sdk/client/storefront"When to use it
Use StoreHeader when the app wants the supported family anatomy but not the higher-level HeaderSection wrapper.
That usually means:
- the storefront wants to own the exact shell order
- the utility, primary nav, or action regions need bespoke composition
- the app still wants a stable path back to the public navigation family instead of rebuilding on raw primitives
Composition model
StoreHeader is the shell root of the new navigation family.
Public shell regions:
StoreHeader.Promotion— top promo strip regionStoreHeader.Mobile— mobile shell branchStoreHeader.Desktop— desktop shell branchStoreHeader.Top— top utility rowStoreHeader.Main— primary shell rowStoreHeader.Logo— logo anchorStoreHeader.Actions— action cluster wrapperStoreHeader.Action— action button or action linkStoreHeader.MobileTrigger— menu opener tied to the shared drawer stateStoreHeader.MobilePanel— mobile drawer wrapper
Use sibling family surfaces to fill those shell zones:
UtilityNavPrimaryNavMegaMenuMobileNavPromotionBar
How it differs from HeaderSection
HeaderSection= section-first fast pathStoreHeader= family root for lower-level composition
If the page mostly fits a standard header shape, start with HeaderSection.
If the shell itself is where variation lives, use StoreHeader.
Behavior and theming guidance
StoreHeader intentionally preserves the current fixed-shell behavior from the existing header model while making the family anatomy clearer.
Use it when the app needs more shell-level control, but still wants:
- the supported overlay/transparent/default variants
- the shared mobile drawer state model
- a public, documented shell vocabulary instead of a private one-off header
Examples
Live examples you can edit directly in the sandbox.
Family-level shell composition
Use StoreHeader when the app wants the supported header family, but needs to compose the shell directly instead of starting from HeaderSection.
Campaign-led promo with richer merchandising
Use StoreHeader.Promotion when the top strip needs more hierarchy, support copy, and a CTA than PromotionBar is meant to provide.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | string | "default" | Visual style of the header background |
| children | string | — | Composition-first header content assembled from child slots such as `Header.Promotion`, `Header.Mobile`, `Header.Desktop`, and `Header.Drawer` |
| labels | string | — | Accessible labels for header icon buttons and mobile drawer helpers |
| className | string | — | No description yet. |