App & Layout Components

API reference for app-level UI and layout components provided by @nuxtify/core and @nuxtify/pages.

Overview

App and layout components are auto-registered across your Nuxt application. Override any component by creating a matching filename in your app's app/components/ directory — see Overriding Defaults.

Core Components (@nuxtify/core)

NuxtifyImg

Combines Vuetify's <v-img> with @nuxt/image's useImage() for responsive srcset generation, automatic WebP conversion, and SVG passthrough. When to is provided, wraps the image in <NuxtLink>.

Props

PropTypeDefaultDescription
srcstringRequiredImage path or URL passed to useImage(). SVGs bypass format conversion and srcset generation.
altstringundefinedImage alt text.
toRouteLocationRaw | stringundefinedWraps the image in a <NuxtLink> when provided.
widthnumber | string'auto'Image width ('auto' omits the width modifier from useImage()).
heightnumber | stringundefinedImage height ('auto' omits the height modifier from useImage()).
maxWidthnumber | stringundefinedMaximum width passed to <v-img>.
maxHeightnumber | stringundefinedMaximum height passed to <v-img>.
aspectRationumber | stringundefinedAspect ratio passed to <v-img>.
coverbooleanundefinedForces cover mode on <v-img> (inferred as true when fit="cover").
fitstringundefinedResize fit strategy passed to @nuxt/image.
formatstring'webp'Output image format (ignored for .svg sources).
qualitynumber | string85Image compression quality passed to @nuxt/image.
sizesstringundefinedResponsive sizes string passed to img.getSizes().
inlinebooleanundefinedRenders <v-img> inline.

Renders your configured brand logo via NuxtifyImg, switching between brand.logo.lightUrl and brand.logo.darkUrl, and falling back to styled brand.name text when no logo URL is configured.

Props

PropTypeDefaultDescription
darkbooleanfalseUses brand.logo.darkUrl when set (falls back to lightUrl).
widthnumberundefinedOverrides brand.logo.width / mobileWidth.
heightnumberundefinedOverrides brand.logo.height / mobileHeight (defaults to 36 desktop / 32 mobile if unset).

AppAnnouncement

Site-wide top announcement <v-system-bar> driven entirely by announcement in app.config.ts. Supports route include/exclude patterns, an optional uppercase chip, message text, and internal/external CTA button. Hidden when printing (d-print-none).

AppDialog

Global confirmation dialog (<v-dialog width="500">) bound to useDialog(). Renders a title, body message, cancel button, and configurable primary action button with loading state.

AppToast

Global toast notification (<v-snackbar color="info" :timeout="5000">) bound to useToast(). Closes on click or after 5 seconds.

AppError

Inline error <v-alert type="error"> bound to useErrorMessage(). Displays an extra raw debug block when running in development mode (import.meta.dev).

AppLoading

Full-viewport (100vh) centered animated dot spinner colored with --v-theme-primary. Accepts no props or slots.

AppCredits

Renders the footer attribution line from credits (prependText, optional linked creator.name, appendText, and AppPoweredBy when showPoweredBy is true).

AppPoweredBy

Renders the "Powered by Nuxtify." attribution link inside AppCredits with UTM referral parameters based on brand.domain. Toggle off via credits.showPoweredBy: false.

Layout & Form Components (@nuxtify/pages)

AppHeader

Responsive <v-app-bar> included in the default layout. Reads from useNuxtifyConfig():

  • Left: <AppLogo /> linked to /.
  • Primary links: navigation.primary items (flat links and hover dropdown menus for TitledLinks), positioned using header.nav.align ('left' | 'center' | 'right').
  • Secondary links: navigation.secondary, where the first entry is styled as a featured flat CTA button (remaining items appear before it on desktop).
  • Mobile (smAndDown): Collapses primary links into a menu toggle icon controlling useDrawer(), while keeping the featured secondary CTA visible.

AppNavigationDrawer

Right-aligned mobile <v-navigation-drawer> rendered on smAndDown viewports and bound to useDrawer(). Displays navigation.primary (expanding TitledLinks into <v-list-group> accordions), secondary links, and a full-width featured secondary CTA button pinned in #append.

AppFooter

Full-width bg-primary footer containing:

  1. <FooterCallToAction /> (when footer.cta.show is true)
  2. Brand column with <AppLogo dark /> and brand.tagline
  3. Grouped link columns from navigation.altPrimary
  4. <FooterCustom /> extension hook
  5. <AppCredits /> and inline legal links from navigation.altSecondary

FooterCallToAction

Renders the centered footer CTA heading/subtitle from footer.cta and embeds <EmailSubscribeForm dark /> when email.provider.defaultSubmitUrl is configured.

FooterCustom

Intentionally empty stub (<slot />) rendered inside AppFooter between the link columns and AppCredits. Create app/components/FooterCustom.vue in your project to inject custom footer sections without replacing AppFooter.

EmailSubscribeForm

Validated newsletter signup form built on <v-form> and submitFormData. Automatically captures page referrer and utm_* query parameters, wraps fields in fields[...] when submitUrl targets MailerLite, and fires useAnalytics().userSignUp() on success.

Props

PropTypeDefaultDescription
submitUrlstringRequiredProvider form endpoint URL (see Email & Forms).
buttonTextstring'Subscribe'Submit button label.
emailPlaceholderstring'Enter your best email'Email input placeholder.
marketingConsentTextstring'Unsubscribe any time.'Supporting note rendered beneath the form (pass '' to hide).
showPrivacybooleanfalseAppends a link to routes.privacy beneath the form.
redirectUrlstring''Optional internal or external URL to navigate to after signup instead of showing thankYouMessage.
thankYouMessagestring'Thanks for signing up!'Confirmation text shown inline after submission when redirectUrl is empty.
darkbooleanfalseAdjusts validation error and helper text contrast for dark surfaces.
prependButtonIconstring''Optional MDI icon prepended to the submit button.
appendButtonIconstring''Optional MDI icon appended to the submit button.