nuxt-x-affiliate
Health Disclaimer
Not medical advice
Health Disclaimer
The XAFHealthDisclaimer component renders a short, opt-in disclaimer that content is informational and not medical advice. Three visual variants cover the common placements: inline paragraph, banner at the top of the page, and compact chip.
Components
<XAFHealthDisclaimer />
<XAFHealthDisclaimer variant="banner" />
<XAFHealthDisclaimer variant="compact" />
<XAFHealthDisclaimer variant="inline" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | built-in | Override the disclaimer body. |
link | string | {legal.baseUrl}/health-disclaimer | Override the linked policy URL. |
linkLabel | string | "Read full health disclaimer" | Override the link label. |
variant | 'inline' | 'banner' | 'compact' | 'inline' | Visual variant. |
Opt-in wiring
Set xAffiliate.legal.optIn.health = true in app.config.ts to flag your site as covering health topics. The component itself is always renderable — the opt-in flag is a site-level declaration, not a render gate.
AI Context
component: XAFHealthDisclaimer
package: "@xenterprises/nuxt-x-affiliate"
use-when: "Not medical advice" disclaimer in inline / banner / compact variants. Opt-in via xAffiliate.legal.optIn.health.
