PrivacyKit

PrivacyKit Component Reference

Public web component documentation for consent-dialog, consent-guard, and consent-missing.

Public custom elements
  1. <consent-dialog>
  2. <consent-guard>
  3. <consent-missing>


Script setup

Load PrivacyKit once globally before using any of the custom elements.

<script type="module" src="https://cdn.privacykit.eu/privacykit.esm.js"></script>

Framework notes

  1. React: custom element typings ship in the distributed definition file.
  2. Vue 3: configure compilerOptions.isCustomElement for PrivacyKit tags.
  3. Angular: add CUSTOM_ELEMENTS_SCHEMA where custom elements are used.
  4. Svelte: no extra setup needed for runtime usage.