Theme Playground

Layout

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

custom header shellsfamily-level navigation compositionadvanced navigation structure

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 region
  • StoreHeader.Mobile — mobile shell branch
  • StoreHeader.Desktop — desktop shell branch
  • StoreHeader.Top — top utility row
  • StoreHeader.Main — primary shell row
  • StoreHeader.Logo — logo anchor
  • StoreHeader.Actions — action cluster wrapper
  • StoreHeader.Action — action button or action link
  • StoreHeader.MobileTrigger — menu opener tied to the shared drawer state
  • StoreHeader.MobilePanel — mobile drawer wrapper

Use sibling family surfaces to fill those shell zones:

  • UtilityNav
  • PrimaryNav
  • MegaMenu
  • MobileNav
  • PromotionBar

How it differs from HeaderSection

  • HeaderSection = section-first fast path
  • StoreHeader = 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.

2 examples

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

PropTypeDefaultDescription
variantstring"default"
Visual style of the header background
childrenstring
Composition-first header content assembled from child slots such as `Header.Promotion`, `Header.Mobile`, `Header.Desktop`, and `Header.Drawer`
labelsstring
Accessible labels for header icon buttons and mobile drawer helpers
classNamestring
No description yet.