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

Your privacy, your choice

We use necessary cookies and, if you let us, analytics and marketing ones.

Your privacy, your choice

We only use necessary cookies to make the site work. We do not use analytics or advertising cookies.

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
inlinebooleanfalseRenders in the flow of the page instead of fixed, for previews.
compactbooleanfalseOne 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-scrollnumber0Pixels 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.
modeLandingConsentMode"opt-in"opt-in, opt-out or notice.
versionstring"1"The consent version; change it to ask again.
titlestring—The heading of the block.
textstring—The main text.
policyLandingAction—A LandingAction to the policy page.
categoriesLandingCookieCategory[]—The categories to filter or group by.
expires-in-daysnumber180Days before asking again.
reopen-buttonbooleanfalseShows a floating button to reopen the preferences.
© 2026 melsami UI.
Developer documentation for melsami UI.