Landing
LandingCookieBanner
Configurable cookie consent: opt-in (GDPR, LGPD), opt-out (CCPA) or notice only. Reject and accept at the same level, per-category preferences with each cookie's details, and the choice stored in a versioned cookie.
components/landing/LandingCookieBanner.vue
View in the demo
Example
Page widget: set cookies in the content. The Cookie consent guide explains modes, categories and how to gate scripts.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
inline | boolean | false | Renders in the flow of the page instead of fixed, for previews. |
compact | boolean | false | One short bar: the title is kept for screen readers only, the text is smaller and the customize option becomes an icon. Off by default. |
show-after-scroll | number | 0 | Pixels the visitor scrolls before the banner appears. LandingPage uses it on ?demo previews so the hero stays clear; the footer link still opens the preferences. |
mode | LandingConsentMode | "opt-in" | opt-in, opt-out or notice. |
version | string | "1" | The consent version; change it to ask again. |
title | string | — | The heading of the block. |
text | string | — | The main text. |
policy | LandingAction | — | A LandingAction to the policy page. |
categories | LandingCookieCategory[] | — | The categories to filter or group by. |
expires-in-days | number | 180 | Days before asking again. |
reopen-button | boolean | false | Shows a floating button to reopen the preferences. |