Skip to content

CookieConsent

A cookie-consent banner that appears at the bottom of the page. Renders a standard accept/decline prompt.

CookieConsent.builder().build()
PropertyTypeDefaultDescription
styleStringInline CSS
cssClassesStringCSS class names

Add CookieConsent to your app’s root Form content or footer so it appears on every page:

Form.builder()
.content(List.of(
mainContent,
CookieConsent.builder().build()
))
.build()

The banner handles showing itself only when consent has not yet been given (stored in local storage by the client-side component).