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
- Provided by:
@nuxtify/core - Source:
src/runtime/components/NuxtifyImg.vue
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
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | Required | Image path or URL passed to useImage(). SVGs bypass format conversion and srcset generation. |
alt | string | undefined | Image alt text. |
to | RouteLocationRaw | string | undefined | Wraps the image in a <NuxtLink> when provided. |
width | number | string | 'auto' | Image width ('auto' omits the width modifier from useImage()). |
height | number | string | undefined | Image height ('auto' omits the height modifier from useImage()). |
maxWidth | number | string | undefined | Maximum width passed to <v-img>. |
maxHeight | number | string | undefined | Maximum height passed to <v-img>. |
aspectRatio | number | string | undefined | Aspect ratio passed to <v-img>. |
cover | boolean | undefined | Forces cover mode on <v-img> (inferred as true when fit="cover"). |
fit | string | undefined | Resize fit strategy passed to @nuxt/image. |
format | string | 'webp' | Output image format (ignored for .svg sources). |
quality | number | string | 85 | Image compression quality passed to @nuxt/image. |
sizes | string | undefined | Responsive sizes string passed to img.getSizes(). |
inline | boolean | undefined | Renders <v-img> inline. |
AppLogo
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppLogo.vue
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
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | false | Uses brand.logo.darkUrl when set (falls back to lightUrl). |
width | number | undefined | Overrides brand.logo.width / mobileWidth. |
height | number | undefined | Overrides brand.logo.height / mobileHeight (defaults to 36 desktop / 32 mobile if unset). |
AppAnnouncement
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppAnnouncement.vue
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
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppDialog.vue
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
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppToast.vue
Global toast notification (<v-snackbar color="info" :timeout="5000">) bound to useToast(). Closes on click or after 5 seconds.
AppError
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppError.vue
Inline error <v-alert type="error"> bound to useErrorMessage(). Displays an extra raw debug block when running in development mode (import.meta.dev).
AppLoading
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppLoading.vue
Full-viewport (100vh) centered animated dot spinner colored with --v-theme-primary. Accepts no props or slots.
AppCredits
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppCredits.vue
Renders the footer attribution line from credits (prependText, optional linked creator.name, appendText, and AppPoweredBy when showPoweredBy is true).
AppPoweredBy
- Provided by:
@nuxtify/core - Source:
src/runtime/components/app/AppPoweredBy.vue
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
- Provided by:
@nuxtify/pages - Source:
src/runtime/components/app/AppHeader.vue
Responsive <v-app-bar> included in the default layout. Reads from useNuxtifyConfig():
- Left:
<AppLogo />linked to/. - Primary links:
navigation.primaryitems (flat links and hover dropdown menus forTitledLinks), positioned usingheader.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 controllinguseDrawer(), while keeping the featured secondary CTA visible.
AppNavigationDrawer
- Provided by:
@nuxtify/pages - Source:
src/runtime/components/app/AppNavigationDrawer.vue
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
- Provided by:
@nuxtify/pages - Source:
src/runtime/components/app/AppFooter.vue
Full-width bg-primary footer containing:
<FooterCallToAction />(whenfooter.cta.showistrue)- Brand column with
<AppLogo dark />andbrand.tagline - Grouped link columns from
navigation.altPrimary <FooterCustom />extension hook<AppCredits />and inline legal links fromnavigation.altSecondary
FooterCallToAction
- Provided by:
@nuxtify/pages - Source:
src/runtime/components/FooterCallToAction.vue
Renders the centered footer CTA heading/subtitle from footer.cta and embeds <EmailSubscribeForm dark /> when email.provider.defaultSubmitUrl is configured.
FooterCustom
- Provided by:
@nuxtify/pages - Source:
src/runtime/components/FooterCustom.vue
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
- Provided by:
@nuxtify/pages - Source:
src/runtime/components/EmailSubscribeForm.vue
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
| Prop | Type | Default | Description |
|---|---|---|---|
submitUrl | string | Required | Provider form endpoint URL (see Email & Forms). |
buttonText | string | 'Subscribe' | Submit button label. |
emailPlaceholder | string | 'Enter your best email' | Email input placeholder. |
marketingConsentText | string | 'Unsubscribe any time.' | Supporting note rendered beneath the form (pass '' to hide). |
showPrivacy | boolean | false | Appends a link to routes.privacy beneath the form. |
redirectUrl | string | '' | Optional internal or external URL to navigate to after signup instead of showing thankYouMessage. |
thankYouMessage | string | 'Thanks for signing up!' | Confirmation text shown inline after submission when redirectUrl is empty. |
dark | boolean | false | Adjusts validation error and helper text contrast for dark surfaces. |
prependButtonIcon | string | '' | Optional MDI icon prepended to the submit button. |
appendButtonIcon | string | '' | Optional MDI icon appended to the submit button. |