Layouts & Navigation

Configure layouts, header alignment, dropdown menus, mobile drawer, announcement banner, and footer sections.

DefaultLayout Anatomy

@nuxtify/pages (and by extension @nuxtify/cms) registers DefaultLayout.vue as your site's default layout. It wraps your pages in a <v-app> shell with seven built-in regions:

  1. AppHeader — Top navigation bar with AppLogo, primary links/dropdowns, secondary CTA links, and mobile menu toggle.
  2. AppNavigationDrawer — Slide-out mobile navigation drawer triggered automatically on smAndDown viewports.
  3. AppAnnouncement — Optional site-wide announcement banner above main content.
  4. <v-main> (<slot />) — Your page content.
  5. AppToast & AppDialog — Global notification toast and dialog containers.
  6. AppFooter — Primary-colored footer with optional FooterCallToAction, brand column, link groups, FooterCustom, AppCredits, and secondary legal links.

Every region is driven by app/app.config.ts under nuxtify, and any individual component can be overridden in app/components/.

Configuring Navigation

Navigation lives under nuxtify.navigation in app/app.config.ts and supports four slots:

SlotWhere It RendersItem Shape
primaryHeader main navigation & mobile drawerMix of flat Link items and TitledLinks dropdown menus
secondaryRight side of header (first item is styled as a featured flat CTA button and stays visible on mobile)Link[]
altPrimaryMulti-column link groups in the footerTitledLinks[]
altSecondarySmall bottom links beneath footer credits (e.g., Privacy, Terms)Link[]

Items in navigation.primary can be either a direct link or a titled dropdown group with optional icons and descriptions:

// app/app.config.ts
export default defineAppConfig({
  nuxtify: {
    navigation: {
      primary: [
        {
          title: 'Product',
          links: [
            {
              text: 'Features',
              description: 'Explore everything included out of the box',
              to: '/features',
              icon: 'mdi-star-outline',
            },
            {
              text: 'Use Cases',
              description: 'See how teams build with Acme',
              to: '/use-cases',
              icon: 'mdi-compass-outline',
            },
          ],
        },
        { text: 'Pricing', to: '/pricing' },
        { text: 'Docs', to: '/docs' },
      ],

      secondary: [
        {
          text: 'View on GitHub',
          href: 'https://github.com/acme/project',
          icon: 'mdi-github',
          openInNew: true,
        },
      ],

      altPrimary: [
        {
          title: 'Product',
          links: [
            { text: 'Features', to: '/features' },
            { text: 'Docs', to: '/docs' },
          ],
        },
        {
          title: 'Company',
          links: [
            { text: 'About', to: '/about' },
            { text: 'Contact', to: '/contact' },
          ],
        },
      ],

      altSecondary: [
        { text: 'Privacy', to: '/privacy' },
        { text: 'Terms', to: '/terms' },
      ],
    },
  },
})

Use to for internal Nuxt routes and href for external URLs. Setting openInNew: true adds target="_blank", rel="noopener nofollow", and an external arrow icon automatically.

Header Navigation Alignment

Control where primary desktop navigation links sit inside AppHeader via header.nav.align (@nuxtify/pages):

  • 'center' (default) — Centered between the logo and secondary actions.
  • 'left' — Aligned next to the logo.
  • 'right' — Aligned next to secondary actions with an automatic vertical divider when secondary links exist.
// app/app.config.ts
export default defineAppConfig({
  nuxtify: {
    header: {
      nav: {
        align: 'left',
      },
    },
  },
})

Announcement Banner

Enable a dismissible/linkable announcement bar using nuxtify.announcement:

// app/app.config.ts
export default defineAppConfig({
  nuxtify: {
    announcement: {
      show: true,
      chipText: 'New',
      chipColor: 'secondary',
      message: 'Docs are now live in Nuxtify CMS!',
      buttonText: 'Explore Docs',
      buttonUrl: '/docs',
      exclude: ['/docs'],
    },
  },
})

Use include to restrict the banner to specific paths, or exclude to hide it on certain pages (like / or /docs).

AppFooter includes three built-in customization levers:

  1. Footer Call to Action (footer.cta): Enable a prominent email-subscribe or CTA banner at the top of the footer (show, title, subtitle, color).
  2. Custom Row (app/components/FooterCustom.vue): Add extra link bars, social badges, or notices right above the credits without overriding AppFooter.vue.
  3. Credits (credits): Customize creator.name, creator.domain, prependText, appendText, and toggle showPoweredBy (true by default).
// app/app.config.ts
export default defineAppConfig({
  nuxtify: {
    credits: {
      creator: {
        name: 'Jane Doe',
        domain: 'janedoe.dev',
      },
      prependText: '© Acme. Built by',
      appendText: 'All rights reserved.',
      showPoweredBy: false,
    },
  },
})

Next Steps