nuxt-c15t Playground

State: ui: none

Consent Gate

<C15tConsentGate> conditionally renders any content based on consent. Unlike <C15tIframe>, it works with any children — not just iframes.

Single condition

AND condition

OR condition

Custom fallback slot

Please enable marketing cookies to see this widget.

Code

<C15tConsentGate condition="marketing">
  <ThirdPartyWidget />

  <template #fallback="{ conditionLabel }">
    <p>Enable {{ conditionLabel }} to see this</p>
  </template>
</C15tConsentGate>