A commercial Vaadin subscription is required to use Cookie Consent in your project.
Cookie Consent aims to help you comply with privacy laws such as General Data Protection Regulation (GDPR) and California Consumer Privacy Act (CCPA). They require users to be informed and explicitly give consent to the usage of cookies.
Scaled down examplesThe examples on this page are scaled down so that their viewport-size-dependent behavior can be demonstrated. Some examples also change their behavior based on your browser viewport size.
By default, the banner is shown at the top of the screen with a predefined text, a link to cookiesandyou.com which explains what cookies are, and a consent button.
Cookie Consent can be positioned in the viewport in 4 non-stretched positions, or stretched across the top or bottom:
Top (stretch, default)
On smaller viewports, the component always takes up the entire width of the viewport.
Cookie Consent’s theme is modified using CSS.