X Enterprises
nuxt-x-marketing

LayoutNavbar

Fixed sticky navbar with transparent-on-hero support, logo, nav links, action buttons, and a mobile full-screen overlay menu.

LayoutNavbar

A fixed-position header that starts transparent over the hero and transitions to a frosted-glass surface after the user scrolls past scrollThreshold pixels. Navigation links and action buttons fall back to appConfig.xMarketing.header if props are not provided. Mobile navigation opens as a full-screen overlay.

Components

<XMarkLayoutNavbar />

A fixed-position header that starts transparent over the hero and transitions to a frosted-glass surface after the user scrolls past scrollThreshold pixels. Navigation links and action buttons fall back to appConfig.xMarketing.header if props are not provided. Mobile navigation opens as a full-screen overlay.

<XMarkLayoutNavbar
  :transparent="true"
  :scroll-threshold="80"
  :logo="{ src: '/logo-light.svg', srcDark: '/logo-dark.svg', alt: 'Acme' }"
  :links="[
    { label: 'Features', to: '/features' },
    { label: 'Pricing', to: '/pricing' },
    { label: 'Blog', to: '/blog' },
  ]"
  :buttons="[
    { label: 'Sign In', to: '/login', variant: 'outline' },
    { label: 'Get Started', to: '/signup', color: 'primary' },
  ]"
/>

Props

PropTypeDefaultDescription
transparentBooleantrueStart with a transparent gradient background over a hero
linksArraynullNav links [{ label, to }]; falls back to appConfig
logoObjectnullLogo object { src, srcDark?, alt? }; falls back to appConfig
scrollThresholdNumber100Pixels scrolled before switching to solid background
buttonsArraynullAction buttons [{ label, to, color?, variant?, icon?, target? }]; falls back to appConfig

Slots

SlotDescription
logoCustom logo element
linksCustom desktop navigation links
actionsCustom desktop action area
mobile-actionsCustom mobile menu action area

AI Context

category: Layout
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkLayoutNavbar
use-when: >
  Adding a sticky top navigation bar to a marketing site layout. Pairs with
  XMarkHero for transparent-on-hero behavior and transitions to a solid surface
  on scroll.
typical-page-section: Fixed top of every page, above all content.
Copyright © 2026