# Consent banner

https://docs.kleaver.ie/reference/consent-banner/

Consent banner — `.consent` + gated embeds

(On a portal-enabled site give it `id="cookie-consent" data-kleaver-label="Cookie notice"`; see *Naming sections*.)
GDPR/ePrivacy gate. `ui.js` shows `[data-consent-banner]` on first visit, stores the choice in `localStorage`, and sets `data-consent-granted` on `<html>`. A `.embed-gate` shows its `.embed-gate__facade` until consent is granted, then lazy-loads the iframe from `data-embed-src` — keeping pages fast and cookie-free until opt-in.
