X Enterprises
nuxt-x-affiliate

Site Footer

Site-wide footer with newsletter signup, secondary nav, legal links, social icons, and copyright.

Site Footer

The XAFSiteFooter component renders the site-wide footer. It pulls the canonical legal link set from xAffiliate.legal.baseUrl so every consuming site in the network points at the central x.enterprises/legal home.

Components

<XAFSiteFooter />

<XAFSiteFooter>
  <template #newsletter>
    <XAFNewsletter />
  </template>
</XAFSiteFooter>

Props

PropTypeDefaultDescription
showNewsletterbooleantrueShow the newsletter slot above the link columns
columnsFooterColumn[]sensible defaultsCustom link columns
compactbooleanfalseSingle-row compact layout

Slots

SlotDescription
newsletterCustom newsletter form (defaults to <XAFNewsletter>)
columnsCustom link columns
legalLegal links row (defaults to the 5 + 3 conditional disclosures)
socialSocial icons row
bottomBottom row (defaults to copyright + language switcher slot)

The footer emits these disclosure links by default (pulled from xAffiliate.legal.baseUrl):

  • Affiliate Disclosure
  • Privacy
  • Terms
  • Cookie
  • Earnings

Plus 3 conditional disclosures (rendered only when xAffiliate.legal.optIn.* is true):

  • Health (when optIn.health)
  • AI Content (when optIn.aiContent)
  • Sponsored Content (when optIn.sponsoredContent)

Tips

  • Don't pass the legal links manually — they're auto-derived from xAffiliate.legal.baseUrl. This keeps every site pointing at the canonical legal home.
  • Use the compact layout for minimal mobile-only footers.
  • The footer doesn't auto-emit schema — the WebSite schema emitted at the page level covers the footer implicitly.

AI Context

component: XAFSiteFooter
package: "@xenterprises/nuxt-x-affiliate"
use-when: Site-wide footer with newsletter, link columns, and legal disclosures
Copyright © 2026