Skip to content

Navigation Components ​

Header and footer components with multiple layout variants.

Desktop HeaderMobile Header
Desktop header with nav linksMobile header with hamburger menu

Header Variants ​

VariantDescription
stickyFixed header that stays visible on scroll. Logo left, nav center, cart/account right.
centeredCentered logo with navigation below.
minimalCompact single-line header.
megaFull-width mega menu with category dropdowns.
splitLogo centered, nav split left/right.

HeaderSticky (Default) ​

┌────────────────────────────────────────────┐
│ [Logo]    [Nav Links]    [Search] [Cart] [Account] │
└────────────────────────────────────────────┘
  • Stays fixed to top of viewport on scroll
  • Condensed mode when scrolled (reduced height)
  • Mobile: hamburger menu replaces nav links
  • Cart badge shows item count
  • Search icon opens search overlay

Configuration ​

json
{
  "pages": {
    "header": {
      "variant": "sticky"
    }
  }
}
VariantDescription
standardSimple footer with links and copyright.
megaMulti-column footer with link groups, newsletter signup, social icons.
minimalSingle-line copyright footer.
centeredCentered layout with stacked sections.

FooterStandard (Default) ​

┌──────────────────────────────────────────────┐
│ [About]     [Help]      [Policies]  [Follow]  │
│  About Us    FAQ         Shipping    Facebook  │
│  Contact     Returns     Privacy     Instagram │
│  Blog        Size Guide  Terms       Twitter   │
├──────────────────────────────────────────────┤
│ © 2026 Store Name. All rights reserved.       │
└──────────────────────────────────────────────┘

Configuration ​

json
{
  "pages": {
    "footer": {
      "variant": "standard"
    }
  }
}

Mobile Navigation ​

The mobile-drawer component provides a slide-out navigation drawer for mobile devices:

  • Triggered by hamburger menu in header
  • Full category tree with expandable subcategories
  • Account links (login/register or account dashboard)
  • Search bar at top
  • Close button or swipe-to-dismiss

Controller ​

The mobile-menu-controller.js handles:

  • Open/close animation
  • Body scroll lock when open
  • Backdrop click to close
  • Escape key to close

Category breadcrumb trail showing the navigation path:

Home > Women > Tops > Tori Tank
  • Links to each parent category
  • Current page shown as plain text (not linked)
  • Schema.org breadcrumb markup for SEO

Source: src/templates/components/navigation/