X Enterprises
nuxt-x-marketing

AffiliateDisclosure

FTC-compliant affiliate disclosure in subtle, banner, or inline variants with optional dismiss persistence.

AffiliateDisclosure

An FTC-compliant affiliate disclosure in three display modes. Use subtle for per-section disclosures, banner for a full-width site-level notice, and inline for inline text. Dismiss state is persisted to localStorage only when dismissible is true and a storageKey is set.

Components

<XMarkAffiliateDisclosure />

<!-- Subtle box (most common — used by ProductGrid and ComparisonTable) -->
<XMarkAffiliateDisclosure
  text="This page contains affiliate links. As an Amazon Associate, we earn from qualifying purchases at no extra cost to you."
  variant="subtle"
  :dismissible="true"
  storage-key="affiliate-disclosure-products"
/>

<!-- Full-width banner -->
<XMarkAffiliateDisclosure
  text="Some links on this site are affiliate links."
  variant="banner"
/>

<!-- Inline sentence -->
<p>
  We recommend the Sony XM5
  <XMarkAffiliateDisclosure
    text="(affiliate link)"
    variant="inline"
    :dismissible="false"
  />
  for most users.
</p>

Props

PropTypeDefaultDescription
textstringDefault Amazon associate disclosureDisclosure message text.
variantstring'subtle'Display style: 'subtle', 'banner', 'inline'.
iconstring'i-lucide-info'Icon shown alongside the text.
dismissiblebooleanfalseShow dismiss button. When true and storageKey is set, dismissed state is persisted to localStorage.
storageKeystring'affiliate-disclosure-dismissed'localStorage key for persisting dismissed state. Has no effect unless dismissible is true.

Emits

EventDescription
dismissFired when the user dismisses the disclosure (only when dismissible is true).

AI Context

category: Affiliate
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkAffiliateDisclosure
use-when: >
  Adding FTC-compliant affiliate disclosures to any page or section containing
  affiliate links. Integrated automatically into XMarkAffiliateProductGrid,
  XMarkAffiliateComparisonTable, and XMarkAffiliateProductDetail via the
  disclosure prop.
typical-page-section: Top of any page or section containing affiliate links.
Copyright © 2026