nuxt-x-affiliate
AI Content Disclosure
AI-assisted content notice in inline / banner / compact variants. Opt-in via xAffiliate.legal.optIn.aiContent.
AI Content Disclosure
The XAFAIContentDisclosure component renders a short, opt-in notice that some content on the page was generated or assisted by AI. Three visual variants cover the common placements: inline paragraph above the article, banner at the top of the page, and compact chip for inline use in cards or sidebars.
Components
<XAFAIContentDisclosure />
<XAFAIContentDisclosure variant="inline" />
<XAFAIContentDisclosure variant="banner" />
<XAFAIContentDisclosure variant="compact" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | built-in | Override the disclosure body. |
link | string | {legal.baseUrl}/ai-content | Override the linked policy URL. |
linkLabel | string | "Read our AI content policy" | Override the link label. |
variant | 'inline' | 'banner' | 'compact' | 'inline' | Visual variant. |
Opt-in wiring
Set xAffiliate.legal.optIn.aiContent = true in app.config.ts to flag your site as AI-assisted. The component itself is always renderable — the opt-in flag is a site-level declaration, not a render gate.
AI Context
component: XAFAIContentDisclosure
package: "@xenterprises/nuxt-x-affiliate"
use-when: AI-assisted content notice in inline / banner / compact variants. Opt-in via xAffiliate.legal.optIn.aiContent.
